This is a migrated thread and some comments may be shown as answers.
Getting grid details on Grid_onComplete
1 Answer 16 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Top achievements
Rank 1
Narayanarao asked on 25 May 2012, 10:05 AM

Hi Team,

     Can some body help in finding how to know the filter fields and values, sort fields and values, page no and page size applied on the grid on Grid_onComplete method of javascript.


1 Answer, 1 is accepted

Sort by
Petur Subev
Telerik team
answered on 29 May 2012, 11:45 AM
Hi Narayanarao,

Basically you can use client side object of the Grid to retrieve all the information.
function yourCompleteHandler(){
    var grid = $(this).data('tGrid') ;
    var filters = grid.dataSource._filter; // get array of fitlers each containing field,operator and value fields
    var currentPage=  grid.currentPage; // get current Page
    var total = // get tatal pages count
    var sortDescriptors = grid.sorted; //get sort objects array each containing member,order, title, type

I hope this helps.

Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Asked by
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question