Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kulbhushan Sankaye on Jul 11, 2007 13:34
open dhtmlx forum
Sorting rows with pagination

We have dhmlXGrid with paginal implementation.
If you are on the 3rd page for example, and you sort ascending, it seems to be working ok, but it keeps the user on the 3rd page... is it possible to take the user back to page 1 so all results are in order of sort.
Answer posted on Jul 11, 2007 19:06
You can use next code for such purpose

    mygrid.attachEvent("onBeforeSorting",function(){
       mygrid.setPage(0);
       return;
    });

This will force switching to first page before every sorting.
Answer posted by sematik (Support) on Nov 30, 2014 09:30

Having solved the problem mentioned above, you may also look through the possible related problems with ajax tree grid and spreadsheet excel reader.