Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendo grid refresh (databound twice)

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();
like image 867
Lucas Konrath Avatar asked Oct 21 '22 15:10

Lucas Konrath


1 Answers

Try to give false to autobind and try again.

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

like image 67
MustafaP Avatar answered Oct 23 '22 12:10

MustafaP