Load Grid using XML and JSON

Hello,

I’m trying to load up my grid using xml for the header and json for the rest of the data. Below is what I currently have:

        myGrid = new dhtmlXGridObject("gridbox");
        myGrid.setImagePath("dhtmlx/dhtmlxGrid/codebase/imgs/");
        myGrid.enableSmartRendering(true);
        myGrid.enableDistributedParsing(true, 100, 1000);
        myGrid.enableMultiselect(true);
        myGrid.enableRowsHover(true, "grid_hover");
        myGrid.enableTooltips("false");
        myGrid.makeFilter("filter", 0);
        myGrid.init();
        myGrid.setSkin("dhx_skyblue");
        myGrid.load("header.xml",function(){
        myGrid.load("data.json", "json");
        });

With this code the header will load up properly, but the grid will not be populated with the data from the json file. Is there something I’m missing or am I going about this the wrong way? Thanks for any help…I can add any other code you need to see so feel free to ask!

Unfortunately the issue cannot be reconstructed locally.

But, please, have a look at the following notes:

myGrid = new dhtmlXGridObject("gridbox"); myGrid.setImagePath("dhtmlx/dhtmlxGrid/codebase/imgs/"); myGrid.enableSmartRendering(true); myGrid.enableDistributedParsing(true, 100, 1000); //Distributed Parsing functionality is incompatible with smart rendering functionality myGrid.enableMultiselect(true); myGrid.enableRowsHover(true, "grid_hover"); myGrid.enableTooltips("false"); myGrid.makeFilter("filter", 0); //method should be called after the header's structure is defined myGrid.init(); // in case of configurating grid's header from the XML "init()" method shouldn't be called myGrid.setSkin("dhx_skyblue"); myGrid.load("header.xml",function(){ myGrid.load("data.json", "json"); });

If issue still occurs - please, provide a more detailed sample of your code with the example of your data files.