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

[Solved] How to Programatically Refresh Ajax Grid (Answer)

2 Answers 162 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rene
Top achievements
Rank 1
Rene asked on 18 Apr 2011, 07:33 PM
function refreshTelerikGrid( gridName ){
    $("#" + gridName).data("tGrid").rebind();
    $("#" + gridName).data("tGrid").ajaxRequest();
}

Enjoy.

Rene Pilon

2 Answers, 1 is accepted

Sort by
0
Carl
Top achievements
Rank 1
answered on 19 Apr 2011, 12:41 AM
Thanks for this tip on a useful utility function!
0
Alex
Top achievements
Rank 1
answered on 01 May 2012, 03:38 PM
It seem that only .ajaxRequest() is needed.  Calling .rebind actually clears grid parameters with a wasteful call to the controller, so it needs to be removed.
Tags
Grid
Asked by
Rene
Top achievements
Rank 1
Answers by
Carl
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Share this question
or