This question is locked. New answers and comments are not allowed.
skyhikeeper
Top achievements
Rank 1
skyhikeeper
asked on 04 Sep 2012, 05:55 AM
I have a ajax mvc grid that I use filtering and grouping and need to refresh the data every 5 minutes, i have tried many javascript solutions but none work. Has anyone a solution to this without having to upgrade to kendo.
5 Answers, 1 is accepted
0
AspenSquare
Top achievements
Rank 1
answered on 04 Sep 2012, 02:18 PM
Do you want to reload the whole page or just the grid on the page?
0
AspenSquare
Top achievements
Rank 1
answered on 04 Sep 2012, 02:21 PM
Something like....
window.setInterval(
function
(){
initGrid();
}, 30000);
0
skyhikeeper
Top achievements
Rank 1
answered on 04 Sep 2012, 03:49 PM
Basically Just refresh the grid not load the whole page, I also need to retain the sort orders , grouping and filters etc.
0
skyhikeeper
Top achievements
Rank 1
answered on 04 Sep 2012, 10:04 PM
Solved it all you need is to create a clientevent calling the following javascript
function refreshGrid() { setInterval(function () { $('#Clients').data('tGrid').ajaxRequest(); }, 10000); }
0
Pascal
Top achievements
Rank 1
answered on 03 May 2013, 10:23 AM
I had the same question, and your solution works perfectly, skyhikeeper !
Thanks a lot, I would not have been able to figure this by myself (am a beginner w.r.t. Telerik and/or ajax).
Thumbs up!
Thanks a lot, I would not have been able to figure this by myself (am a beginner w.r.t. Telerik and/or ajax).
Thumbs up!