When I try to use the following:
mygrid.addRow(“123x”,[""],-1);
The new row ends up in position 1, and not in the bottom of the grid. Can you help me?
In which moment you are using such code?
Beware that XML loading is async., so if you are using this code when XML data not really loaded yet, it will be added to the first position ( because other rows not loaded from XML yet ) - you can use onXLE event or second parameter of load method to catch the moment when all data already loaded.
It a long way further down the code than mygrid.init() and mygrid.loadXML(). I’ve found that if I use -2 instead, then it adds the row at the bottom of the grid.
It a long way further down the code
If it executed in same js thread - it doesn’t matter, time of js script execution is much smaller than time of xml loading.
Please try to use
grid.load(url,function(){
mygrid.addRow(“123x”,[""],-1);
});
Beautiful, that was it, thanks a lot.
While I have you guys here, I’ve sent an email about retrieving the datalink folder, it wasn’t in our zip-file. Would you look at it?
Mentioned extension doesn’t supported anymore. The old version of it still can be used with latest grid and tree, but we recommend to use dataprocessor with custom routine.
dhtmlx.com/docs/products/dhtmlxG … aprocessor
( old version of lib will be sent to you by email in nearest time )