Reputation: 577
I am having a problem while refreshing the kendo grid, for some reason, the dataBound
event is activated twice, does someone know what could be the problem? or is this a normal behavior?
$("#grid").data('kendoGrid').dataSource.read();
$("#grid").data('kendoGrid').refresh();
UPDATE:
if i remove the refresh line, the dataBound
happens only once
$("#grid").data('kendoGrid').refresh();
Upvotes: 5
Views: 17650
Reputation: 19
You can remove the below lines to:
$("#KendoGridId").data("kendoGrid").dataSource.read();
$("#KendoGridId").data("kendoGrid").dataSource.page(1);
to:
$("#KendoGridId").data("kendoGrid").dataSource.read();
Upvotes: 0
Reputation: 4054
If you're simply wanting to update the data, you shouldn't need to call Refresh()
. DataSource.Read()
should do.
Upvotes: 0
Reputation: 6633
Try to give false to autobind and try again.
http://docs.telerik.com/kendo-ui/api/web/grid#configuration-autoBind
Upvotes: 3