Sets or retrieves the text in the grid column headers (header text). Does not encode the html controls characters (<, >, ", &) - the text containing correct html markup will be displayed as html.
var value = obj.getHeaderText();
obj.setHeaderText(value);
obj.onHeaderTextChanging = function(value){...};
obj.onHeaderTextChanged = function(value){...};
obj.onHeaderTextError = function(value){...};
Single header cell
obj.setHeaderText("header text", 0); // header text, column-0
Complete header row
obj.setHeaderText(textArray); // header text, array
Extended grid (multiple header rows)
// 3 header rows
obj.setHeaderCount(3);
// function - all columns/rows
obj.setHeaderText(function(col, row){return col + "." + row});
// array - row 1
obj.setHeaderText(["Home", "Favorites", "Font size", "Search"], 1);
// single value - col 0, row 0
obj.setHeaderText("** header **", 0, 0);
When some of the html controls characters (<
, >
, "
, &
) should appear as text - convert them into html entity codes (<
, >
, "
, &
).
Grid templates: header
Header model: image, tooltip, link, value, data, format
Text properties: cell, selector, footer, top, bottom