Kendo grid refresh (databound twice)

Lucas Konrath picture Lucas Konrath · Jan 29, 2014 · Viewed 16k times · Source

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();

Answer

MustafaP picture MustafaP · Jan 29, 2014

Try to give false to autobind and try again.

http://docs.telerik.com/kendo-ui/api/web/grid#configuration-autoBind