Categories | Question details Back To List | ||
Sorting Problem with Grouping I am using serverside pagination and not using sorting... I am sorting by PHP code while creating XML.. and it work fines. so when i am loading grid with mygrid.groupBy(2); so 1st time its load the page 1 ... its fine... when load page 2 ... thats also fine... when you are coming back to page 1... grouping is lost... but i have used... again groupBy(2) with event "onPageChanged"; .. so its working fine... but the sorting is not fine... and if you go to page 2 ... there same problem... data is fine... grouping is fine... but sorting is not fine... the sorting order is changed within the group... so i am forcing it for sort by grid.sortRows from start but its not working ... my code is somehow like this... mygrid.enableCollSpan(true); mygrid.attachEvent("onPageChanged",function(){ mygrid.groupBy(2); }); /* coz grouping is lost while you come back to page that is already loaded from the server*/ mygrid.init(); mygrid.groupBy(2); mygrid.sortRows(2,"str","des"); mygrid.loadXML("url",function(){}); and its not even working mygrid.loadXML("url",function(){ mygrid.sortRows(2,"str","des"); }); Answer posted by Support on Jun 02, 2009 07:00 groupBy mode not compatible with paging or smart-rendering - combination of those modes are reason of problems in your case. |