Setting sort order in grid - doesn't stay
I am trying to manually set the default sort order of a grid using the following example:
gridname.sort(2, "ascending");
No matter where I put this in my code the best I can manage is that the sort order (ie. the arrow in the column header) is displayed for a second until the data is loaded then the arrow disappears and the natural sort order is used.
I assumed the proper place to put the sort order code is after the data is loaded and the grid is refreshed but it is not working.
Any ideas? Thanks!
gridname.sort(2, "ascending");
No matter where I put this in my code the best I can manage is that the sort order (ie. the arrow in the column header) is displayed for a second until the data is loaded then the arrow disappears and the natural sort order is used.
I assumed the proper place to put the sort order code is after the data is loaded and the grid is refreshed but it is not working.
Any ideas? Thanks!
John
May 6,