Kendo grid update (data bit twice)

I have a problem updating the kendo grid, for some reason the event is dataBoundfired twice, does anyone know what might be the problem? or is this normal behavior?

$("#grid").data('kendoGrid').dataSource.read();
$("#grid").data('kendoGrid').refresh();

UPDATE:

if I delete the update line dataBoundonly happens once

$("#grid").data('kendoGrid').refresh();
+4
source share
3 answers
+3
source

If you just want to update the data, you do not need to call Refresh(). DataSource.Read()must do.

0
source

, :

$("#KendoGridId").data("kendoGrid").dataSource.read();
$("#KendoGridId").data("kendoGrid").dataSource.page(1);

$("#KendoGridId").data("kendoGrid").dataSource.read();
0

Source: https://habr.com/ru/post/1524274/


All Articles