PDA

View Full Version : Grid Sorting



myworld100us
9 Sep 2009, 10:46 AM
I have a paginated Grid which has sorting in it .
Lets say I am on Page 4 , user clicks on One the collumns the whole grid is sorted , but its still on Page 4 , how to show Page 1.

httpdotcom
9 Sep 2009, 12:47 PM
gridObj.on( "sortchange", function( g,o ) {
g.getStore().reload( { params: { start: 0, limit: ## } } ) ;
} ) ;

not tested thoroughly, so YMMV...may require some state management assistance.