Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kunal on Dec 18, 2008 21:46
open dhtmlx forum
grid with grid

hi,

I am using dhtmlx pro version 2...
In my code , I want to show grid within grid ...
Please tell me how do I load such grid using xmlString object?
what are the available APIs for loading grid?

Thanks & Regards
Kunal Jadhav

Answer posted by Support on Dec 19, 2008 02:36
In case of subgrid - there is an onSubGridCreated event, which can be used for such task, similar to next

mygrid.attachEvent("onSubGridCreated",function(subgrid,id,index,data){   //data - data from related XML cell
       subgrid.loadXMLString(...any_data...);
       subgrid.callEvent("onGridReconstructed",[]);
       return false;//block default logic
});