Check documentation for the latest version 6.0 of dhtmlxSuite setHeader DHTMLX Docs

setHeader

sets the header label and default params for new headers

void setHeader(string hdrStr,string splitSign,array styles);

Parameters

hdrStrstringa header string with delimiters
splitSignstringa string used as a split marker, optional. Default is "#cspan"
stylesarrayan array of header styles

Example

// setting columns' labels
mygrid.setHeader("A,B,C");
// setting columns' labels and their styles
mygrid.setHeader(
    "A,B,C",
    null,
    ["text-align:right;","text-align:left;","text-align:center"]
);

Back to top