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”);
});
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.
Olga
March 10, 2011, 3:24pm
#5
This issue confirmed and fixed. Fixes will be included at the next version of dhtmlxGrid
gkohen
January 18, 2012, 6:23pm
#6
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.