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

Please check the next article
dhtmlx.com/docs/products/dhtmlxG … art_hdrftr

It shows how complex headers can be constructed.


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…

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”);