Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Klaus Kohlschuetter on Jan 11, 2009 02:53
open dhtmlx forum
Subgrid

Hi all,

I have two questions using a subgrid:
1. Is it possible to hide the header line in a subgrid?
2. What to do to use colspan in a subgrid? All my effort does not bring the correct view. I tried to use a xml-line like "<cell colspan='4'>...</cell>

Thanks for all
Klaus
Answer posted by Support on Jan 12, 2009 02:25
>>1. Is it possible to hide the header line in a subgrid?
You can use onSubGridCreated event as

mygrid.attachEvent("onSubGridCreated",function(sub){
   sub.setNoHeader(true);
   return true;
});

>>2. What to do to use colspan in a subgrid?
Same as above, onSubGridCreated event can be used with enableColSpan command, after that subgrid will correctly react on colspan attributes in XML