Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by john on Jun 24, 2008 09:15
open dhtmlx forum
hide header, is possible?

Hi,

I have a multipple grid page that I would like to hide the 2nd,3rd, 4th grid, but when i comment the following code for the 2,3,4

//mygrid.setHeader"X,Y,z....................

the report stop workin, ho can I hide this headers
Answer posted by Support on Jun 25, 2008 01:56
You still need setHeader command, it defines count of column in grid.
If you need to have grid without visible column - just use grid.setNoHeader

    grid.setHeader("A,B,C"); //mandatory
    grid.setNoHeader(true); //hide header for the grid
Answer posted by mline on Jun 27, 2008 01:32
Hi,
Is there a xml parameter for the same behavior ? For me, the header is describe in xml file.
Thanks
Answer posted by Support on Jun 27, 2008 02:03
There is no separate parameter, but you can execute the same comman through beforeInit section

<rows>
    <head>
    <beforeInit><call command="setNoHeader"><param>true</param></call></beforeInit>
    <column ...> ... header configuration here
Answer posted by mline on Jun 27, 2008 07:06
Thanks, I didn't think that ;-)