or

input.kendoComboBox({ dataTextField: 'label', dataValueField: 'id', dataSource: { type: "json", serverFiltering: true, transport: { read: { url: 'api/getchoices, data: { filter: function(){ return input.val(); } } } } } });<input data-role="combobox" data-bind="value: id"/><div id="foo" data-role="view"> <a data-role="button" data-badge="1" data-click="resetClicks">Reset Badge Count</a></div><script>var app = new kendo.mobile.Application();function resetClicks() { this.badge(0); //set new badge value}</script>
success: function () { foundItem = false; $("#tree").data("kendoTreeView").dataSource.read(); }function onBound(e) { if (toSelectText != null && !foundItem) { var treeview = $("#tree").data("kendoTreeView"); var selectitem = treeview.findByText(toSelectText); if (treeview.text(selectitem) == toSelectText) { treeview.select(selectitem); treeview.trigger("select", { node: selectitem }); foundItem = true; } } };