Does addrow function disable sorting?

I tried using loadxml function and sorting works.



But my hosting site will append advertisement headers so I have to use addrow function instead to add the row. It seemed that when I do this, the sorting function stops working. Clicking on the header rows now does nothing.



I suspect the script will not sort if they think the grid is not finalized yet. Am I right?

If I have no choice but to use addrow function, is there a way or command to say the grid after the last addrow command will not change any more?

You can define if grid was fully loaded using 2nd parameter of load() method or “onXLE” event:
mygrid.load(“grid.xml”,function(){
//grid was fully loaded
})
mygrid.attachEvent(“onXLE”,function(){
//grid was fully loaded
})

Note that inbuild grid sorting works only when you are loading all rows at one. It will not work if you are using dynamic smart rendering mode. In such case you should implement server side sorting. Please see more information here dhtmlx.com/docs/products/dhtmlxC … ndex.shtml