Reputation: 397
I want to refresh the kendo combobox in angular code. i am trying using jquery it's not working.
$("#customObject").data("kendoComboBox").refresh();
Upvotes: 0
Views: 1141
Reputation: 194
you can add in view a new item in your datasource, for example :
$("#customObject").data("kendoComboBox").dataSource.add({ prop1: "foo", prop2: "bar" });
by this way you don't have to do dataSource.read()
, it may take time sometimes.
Upvotes: 1
Reputation: 983
Maybe you mean reload the data? Try this;
$("#customObject").data("kendoComboBox").dataSource.read();
Upvotes: 2