Dhtmlx subsubgrid

Please send me example which shows subsubgrid

I have used subgrid but unable to use subsubgrid I am using version2.1.

I am getting the error :error in loadXml.

I am using the code like this



     mygrid.setHeader(“Hotel,Room,Country,Date,Rates,#cspan,#cspan,#cspan,Plan,Type”);

     mygrid.attachHeader("#rspan,#rspan,#rspan,#rspan,Sgl,Dbl,Ext,Total,#rspan,#rspan")

     mygrid.setInitWidths(“50,50,50,50,50,50,50,50,50,50”);

     mygrid.setColAlign(“left,left,left,center,right,center,center,center,center,center”);

     mygrid.setColTypes(“sub_row_grid,coro,ed,dhxCalendar,ed,ed,ed,ro[=c4+c5+c6],coro,coro”);

     mygrid.init();

     mygrid.setMathRound(0);

mygrid.enableMathEditing(true);

     mygrid.loadXML(“grid.xml”,function(){

     mygrid.attachHeader("#rspan,#rspan,#rspan,#rspan,#rspan,#rspan,#rspan,#rspan,

,
");

     document.getElementById(“Plan_flt”).appendChild(document.getElementById(“Plan_flt_box”).childNodes[0])

var authFlt = document.getElementById(“Type_flt”).appendChild(document.getElementById(“Type_flt_box”).childNodes[0]);

populateSelectWithAuthors(authFlt);

mygrid.setSizes();

});

mygrid.attachEvent(“onSubGridCreated”,function(subgrid){

subgrid.setHeader(“Hotel,Room,Country,Date,Rates,#cspan,#cspan,#cspan,Plan,Type”);

     subgrid.attachHeader("#rspan,#rspan,#rspan,#rspan,Sgl,Dbl,Ext,Total,#rspan,#rspan")

     subgrid.setInitWidths(“50,50,50,50,50,50,50,50,50,50”);

     subgrid.setColAlign(“left,left,left,center,right,center,center,center,center,center”);

     subgrid.setColTypes(“sub_row_grid,coro,ed,dhxCalendar,ed,ed,ed,ro[=c4+c5+c6],coro,coro”);

     subgrid.init();

     subgrid.setMathRound(0);

subgrid.enableMathEditing(true);

subgrid.loadXML(“grid.xml”,function(subgrid){

subgrid.setSizes();

});

subgrid.init();

return false; // block default behavior

})





I am using this code for subgrid now please hep me out how to use subsubgrid

The code which you are using, looks mostly correct, please try to update the init of subgrid as

subgrid.enableMathEditing(true);
subgrid.loadXML(“grid.xml”,function(){ //without parameter
           subgrid.setSizes();
});
//subgrid.init(); - not necessary

Also, please beware that onSubGridCreated attached only to the top level grid and will be used to generate first level of subgrids. If you want to use the same code for next levels of subgrids, you need to use
         subgrid.attachEvent(“onSubGridCreated”, some_function );