Hi,
I tried the following code to refresh the list items of a ComboBox widget, but it didn't work. It didn't trigger a data retrieval call. Not sure what's wrong.
widget.dataSource.read();
widget.refresh();
The data source is created as follows:
new kendo.data.DataSource({
serverFiltering: true
transport: {
read: {
url: "xxxx",
dataType: "json",
data: function (e) {
// some code to dynamically prepare the call parameters
},
type: "POST"
}
},
schema: {
data: function (response) {
if (response != null) {
var result = JSON.parse(response);
return (result.Data != null ? result.Data : "");
} else {
return "";
}
}
}
});
Please advise. Thanks.