Hi I have the following code:
[i]mygrid.attachEvent(“onBeforeSorting”,function(ind,type,direction){
window.a_direction = direction;
window.s_col = ind;
this.clearAll();
this.loadXML("getData.php?dir="+window.a_direction+"&ind="+window.s_col+"&surveyID="+$('#surveyID').val());
this.setSortImgState(true,window.s_col,window.a_direction);
return false;
});[/i]
Now my first problem is that the sorting appears to be working fine, but after the data is loaded the sorting icon disappears and when I click on the header again, it sorts ascending again (doesn’t save the sort state) and then when I click on the second page and greater nothing happens, nothing is loaded in the pages. Please help thank you in advance.