Check documentation for the latest version of dhtmlxSuite attachHeader DHTMLX Docs

attachHeader

attaches an additional line to the header

void attachHeader(array values, [array style] );
valuesarrayarray of header titles
stylearrayarray of styles, optional

Example

//plain usage
myTreeGrid.attachHeader("A,B,C,D");
//alternative syntax
myTreeGrid.attachHeader(["A","B","C","D"])
//colspans in header
myTreeGrid.attachHeader("A,#cspan,C,#cspan");
//rowspans in header
myTreeGrid.attachHeader("A,#rspan,C,#rspan");
//styles assigned
myTreeGrid.attachHeader("A,B,C,D",["","color:red;","",""]);

Back to top