hi i need to load same grid multiple times on same window? seems dhtmlx grid wont load if same name.
myGrid.load
myGrid.load
TIA.
hi i need to load same grid multiple times on same window? seems dhtmlx grid wont load if same name.
myGrid.load
myGrid.load
TIA.
Please, try to use the callback function
mygrid.load(url,function(){
mygrid.load(url2)
})
Also, pleas,e make sure that you have no duplicating row ids in your generated data files.
hi,
I want to put the grid inside the loop. Is this possible?
so that it can produce multiple grid. like 200 grids with same name.
TIA
Yep, as far as you are using different HTML containers it must not be a problem
for (var i=0; i<100; i++){
var mygrid = new dhtmlXGridObject("div"+i);
mygrid.setHeader("a,b");
mygrid.init();
mygrid.load("data.xml")
}