This is a migrated thread and some comments may be shown as answers.

How to refresh grid from client?

3 Answers 606 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pat
Top achievements
Rank 1
Pat asked on 03 Jan 2013, 09:09 PM
I am trying
var grid = $("#Grid").data("kendoGrid");
grid.dataSource.read();
but it doesn't work. I found another post in the non-mvc forum where somebody had to set "cache" to false.  Is this required?  If so, how do I set this cache setting using the MVC Helper?

3 Answers, 1 is accepted

Sort by
0
Trent Jones
Top achievements
Rank 1
answered on 04 Jan 2013, 08:43 PM
Double-check the documentation but I use:
grid.dataSource.fetch();


0
Atanas Korchev
Telerik team
answered on 07 Jan 2013, 07:46 AM
Hi,

 The recommended way is indeed to use the read method of the data source. Could you please clarify what "doesn't work" means in your case? Did you check if an ajax request is made using your browser's developer tools (the network tab shows all http requests being made).

All the best,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Pat
Top achievements
Rank 1
answered on 07 Jan 2013, 03:36 PM
I'm all set.  I used fiddler and saw that it was not even making an ajax call so I troublehshooted that and fixed my ajax settings.
Tags
Grid
Asked by
Pat
Top achievements
Rank 1
Answers by
Trent Jones
Top achievements
Rank 1
Atanas Korchev
Telerik team
Pat
Top achievements
Rank 1
Share this question
or