function commonTemplate(item) { return "" + item.Text + ""; }; function commonTemplate2(item) { return "***" + item.Text + "***"; }; function commonMatch(selectedValue) { return this.When == selectedValue; };