or
$(document).ready(function () { cboSite = $("#SiteId").kendoComboBox({ minLength: 2, suggest: true, autoBind: false, dataTextField: "text", dataValueField: "value", dataSource: { serverFiltering: true, serverPaging: true, datatype: 'json', transport: { read: { url: '@Url.Action("GetSites", "Equipment", new { area = "Equipment" })', data: { q: function () { return cboSite.text(); } } } } , schema: { data: function (data) { return data.result; } } } }).data("kendoComboBox"); });selectable: true
but the change event does not fire. Any ideas why it would be so?
dataSource = new kendo.data.DataSource({ transport: { read: {url:"<?=base_url()?>/bank"}, update: {url:"<?=base_url()?>/bank/update", type:"POST"}, destroy: {url:"<?=base_url()?>/bank/destroy",type:"POST"}, create: {url:"<?=base_url()?>/bank/create",type:"POST"}, }, error: function(e) { alert(e.responseText); }, batch: true, pageSize: 25, schema: { model: { id: "id_bank", fields: { nama_bank: { type: "string" }, } }}});//kendo grid$("#grid_bank").kendoGrid({ dataSource: dataSource, editable: "popup", height: 450, filterable: true, sortable: true, pageable: true, toolbar: ["create"], columns: [ { field: "nama_bank",title: "Nama", filterable: true }, { command: ["edit", "destroy"], title: " ", width: "160px" } ]});$Elem.children(".table").kendoGrid({ dataSource: data, /* height: "100%", (do not specify height) */ scrollable: true, selectable: true, sortable: true, filterable: true, pageable: false, resizable: true, rowTemplate: kendo.template($chanElem.children(".rowTemplate").html())});var dataSource = new kendo.data.DataSource({ serverPaging: true, pageSize: 10, transport: { read: { // the remote service url // JSONP is required for cross-domain AJAX dataType: "jsonp", // additional parameters sent to the remote service data: { screen_name: "USER_ID" } } }, schema: { // describe the result format data: "results" // the data which the data source will be bound to is in the "results" field }});$("#ResourcesList").kendoComboBox({ index: 0, placeholder: "Search by title/description", dataTextField: "Title", dataValueField: "ResourceID", filter: "contains", template: '<div style="padding: 10px;"><strong>#= Title #</strong>' + '<div style="margin-top: 5px;" class="t1">#= Description #</div></div>', dataSource: { type: "jsonp", serverFiltering: true, serverPaging: true, pageSize: 20, transport: { read: { url: function (kcb) { var strurl="/mysite/GetResourcesList?filtertext=" + $("#ResourcesList").data().kendoComboBox.text(); return strurl; } } } } });alert($("#ResourcesList").data("kendoComboBox").value())