Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reloading/refreshing Kendo Grid

How to reload or refresh a Kendo Grid using Javascript?

It is often required to reload or refresh a grid after sometime or after a user action.

like image 382
Oxon Avatar asked Oct 10 '22 22:10

Oxon


People also ask

How do I refresh kendo Dropdownlist dataSource?

on your read url add '? myDate=' + new Date(). This will refresh the data.


2 Answers

You can use

$('#GridName').data('kendoGrid').dataSource.read(); <!--  first reload data source -->

$('#GridName').data('kendoGrid').refresh(); <!--  refresh current UI -->
like image 335
Jaimin Avatar answered Oct 12 '22 10:10

Jaimin


I never do refresh.

$('#GridName').data('kendoGrid').dataSource.read();

alone works for me all the time.

like image 63
Purna Pilla Avatar answered Oct 12 '22 10:10

Purna Pilla