Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael Frank on Aug 04, 2009 23:40
open dhtmlx forum
Subgrid with no Header

Hello,

I need to create Subgrid WITHOUT the Header - but everything i tryed seems not to work.

I create my Grids (and the Subgrids) - with XML Definition

If i remove the <column> Definitions - the grid doesnŽt load

Then i tryed this:

grid.attachEvent("onSubGridCreated",function(sub,id,ind,value){
sub.detachHeader(0);
...

But - the subgrid header still appers.

What iŽam doing wrong? Any solution to hide the subgrid Headers?

Answer posted by dhxSupport on Aug 05, 2009 01:26
To create grid or sub grid whith no headers you have to define it's structure (number of columns) and then use method:
grid.attachEvent("onSubGridCreated",function(sub,id,ind,value){
sub.setNoHeader(true)
})