Hi,
The dhtmlxgrid previous sort order is lost after I performing these steps:
- Filter the grid with a text filter.
- Sort the filtered grid.
- Remove the filter.
Expected Behavior: Sort behavior in Step 2 should retain.
What happens: Sort behavior in Step 2 is not retained.
Can somebody help me resolve this bug.
–
Thanks
Syed Anas Razvi
sematik
#2
You may try to save the sorting state after each sorting:
grid.attachEvent("onAfterSorting", function(index,type,direction){
grid.saveSortingToCookie();
});
And load the saved sorting after the filtering:
grid.attachEvent("onFilterEnd", function(elements){
grid.loadSortingFromCookie();
});
It worked. Thanks. Appreciate