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.
Regards,
1 Answer, 1 is accepted
0
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.
e.g.
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 = grid.total // get tatal pages count
var sortDescriptors = grid.sorted; //get sort objects array each containing member,order, title, type
}
I hope this helps.
Greetings,
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.