Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by mdayıcan on Nov 14, 2008 01:38
open dhtmlx forum
I have ready grid on the client side. how can I pass that grid as a sub grid. XMLseriliazation did not work thanks.

Answer posted by Support on Nov 14, 2008 03:29
Technically it can be done as

mygrid.attachEvent("onSubGridCreated",function(subgrid){
    var cont = subgrid.entBox
    cont.innerHTML="";
    some_grid.attachToObject(cont);  //some_grid - reference to existing grid object which need to be used as subgrid
    return false;
});


but using onSubGridCreate event to create new grid - may be a better approach