Dynamic loading in grid using JSON

I am trying to load grid dynamically using XML configuration and JSON data.

// This works
mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setImagePath(“dhtmlx/imgs/”);
mygrid.setHeader(“Order”);
mygrid.setInitWidths(“50”)
mygrid.setColAlign(“right”)
mygrid.setColTypes(“ed”);
mygrid.setColSorting(“na”)
mygrid.init();
mygrid.setSkin(“dhx_skyblue”);
mygrid.enableSmartRendering(true,50);
mygrid.load(“dynload.jsp”, “json”);

//But When I change it to load XML configuration as well, it doesn’t work

mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setImagePath(“dhtmlx/imgs/”);
mygrid.init();
mygrid.setSkin(“dhx_skyblue”);
mygrid.enableSmartRendering(true,50);
mygrid.load(“dynload.jsp”, “json”);
mygrid.load(“grid_configuration.xml”, function(){
mygrid.load(“dynload.jsp”, “json”);
});

Please suggest whats wrong
DynLoad.zip (1.51 KB)

Small correction

//But When I change it to load XML configuration as well, it doesn’t work

mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setImagePath(“dhtmlx/imgs/”);
mygrid.init();
mygrid.setSkin(“dhx_skyblue”);
mygrid.enableSmartRendering(true,50);
mygrid.load(“grid_configuration.xml”, function(){
mygrid.load(“dynload.jsp”, “json”);
});

it doesn’t work
What exactly happens and what is expected behavior for you?

XML configuration is loaded and the call to load JSON is made to server side. And server side jsp did returned the first 50 rows of data. But I donot see them on the grid.

This issue confirmed and fixed. Fixes will be included at the next version of dhtmlxGrid

Is it fixed in the 3.0 Pro version?
I’m still experiencing the same issue and this is a deal breaker for us since we potentially deal with >50K rows.

If issue still occurs for you - please open ticket at support system.