Skip to main content


Optional. Makes long text to split into multiple lines based on the width of the column

autoHeight?: boolean;
Default value: false


const treegrid = new dhx.TreeGrid("treegrid_container", {
columns: [
// columns config
autoHeight: true,
data: dataset

Related sample: TreeGrid. Rows auto height

Note, that the autoHeight option does not adjust the height of the cells in the header/footer of TreeGrid. The option just makes their text to split into multiple lines, but the height of the cells will remain the same. To set the height of the rows in the header/footer, you should apply the headerRowHeight and footerRowHeight configuration options of TreeGrid.

Change log:

added in v7.1