dhtmlxGrid with sorting and pagination

Hello, i have a problem with the sorting and the pagination… here its my example:



mygrid.setImagePath("…/codebase/imgs/");

mygrid.setHeader(“somthing1,somthing2”);

mygrid.setInitWidthsP(“50,50”);

mygrid.setColAlign(“center,center”);

mygrid.setColTypes(“ro,ro”);

mygrid.setColSorting(“server,server”);

mygrid.setSkin(“modern”);

mygrid.init();

mygrid.enablePaging(true, 10, 10, “pagingArea”, true, “infoArea”);

mygrid.setPagingSkin(“bricks”);

mygrid.attachEvent(“onBeforeSorting”, sortGridOnServer);



function sortGridOnServer(ind, gridObj, dir) {

var params = getParams();

var index = ind;

params = params +

“&orderBy=” + index +

“&direction=” + dir;

mygrid.clearAll();

mygrid.loadXML(params);

mygrid.setSortImgState(true, ind, dir);

return false;

}

and when i submit other filter in this function i add mygrid.setSortImgState(false); to quit the img sorting, and remove ok the img, but when i change the page, the img its visible, what its the correct function or method to remove the img and dont put visible ? only if i call the function sortGridOnServer.

and when i submit other filter in this function i add mygrid.setSortImgState(false); to quit the img sorting
Can you provide sample of code where you remove sorting image? Please check if you are calling setSortImgState() method on “onXLE” event.