bagya
bagya

Reputation: 397

how to refresh kendo combobox in angularjs?

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

Answers (2)

maliness
maliness

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

richardb
richardb

Reputation: 983

Maybe you mean reload the data? Try this;

$("#customObject").data("kendoComboBox").dataSource.read();

Upvotes: 2

Related Questions