Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kunal Bhatia on May 26, 2009 03:54
open dhtmlx forum
Incorporating a row with two column in dhtmlx grid header

Hello,
Iam trying to add two columns in the header column of dhtmx grid....

Eg...

Sales
Pre|Post
Reply Soon
Answer posted by Support on May 26, 2009 04:01
Please check the next article
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Headers_and_footers.html#grid_art_hdrftr

It shows how complex headers can be constructed.
Answer posted by Kunal Bhatia on May 26, 2009 04:34

I found the function name i.e mygrid.attachHeader()....dhtmlxgrid.js

but i'm nt gettin where i would be declaring it in order to pass parameters for the column attchment...

Answer posted by Support on May 26, 2009 04:51
attachHeader can be used next to setHeader command to define additional line in header, for example the next code will create two line header, where first line contains combined cell

grid.setHeader("A,#cspan");
grid.attachHeader("A1,B1");