dhtmlXGridObject groupBy make lost order

Hello,

I need some help using the groupBy function from the gridbox. The groupby works fine but when I go to the second page and then I come back to the first one then the sort is lost.

mygrid.attachEvent(“onPageChanged”, function(ind,fInd,lInd){
mygrid.groupBy(1,["#title","#cspan","#cspan","#cspan","#cspan"]);
mygrid.collapseAllGroups;
});

I can see when I come back into the first page that the order remain, before its called the groupby.

I fill the grid within an XML call, with the loadXML.

Thanks in advanced

it seems like when using the groupBy function, it sort again by the first column.

Unfortunately the groupBy method is incompatible with paging, smart rendering or distributed parsing mode.