TreeList.getCaptionHeight

Syntax

getCaptionHeight ();

Description

The getCaptionHeight method returns height of column headings.

Example

To execute this example, the page must contain the TreeList component named treeListSett (see Example of Creating the TreeList Component). For all columns of the component set width equal to maximum width of content stored in visible and invisible rows of the column with the index 1. Set component height four times higher than the column heading height:

for (var i = 0; i < treeListSett.getColumns().getCount(); i++)

{

    treeListSett.getColumns().getItem(i).setWidth(treeListSett.getMaximalWidthForColumnFull(1));

}

height = treeListSett.getCaptionHeight();

treeListSett.setHeight(height * 4);

After executing the example component height and width of component columns are changed.

See also:

TreeList