makes long text to split into multiple lines based on the width of the column

boolean autoHeight;

Available only in PRO Edition


var grid = new dhx.Grid("grid_container", {
    columns: [// columns config],
    autoHeight: true,      data: dataset

Default value:


Related samples


This functionality requires PRO version of the dhtmlxGrid (or DHTMLX suite) package.

Note, that the autoHeight option does not adjust the height of the cells in the header/footer of Grid. 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 Grid.

Note, that:

  • to optimize performance, you should specify htmlEnable: true in the configuration object of the column which contains HTML content;
  • you can also specify htmlEnable:true in the configuration object of Grid;
  • htmlEnable: true allows calculating the content of simple HTML templates by excluding HTML markup and calculating internal content.
  • the autoHeight configuration option enabled adjusts the height of the cells with account of template added to cells.
See also
Change log

added in v7.1

Back to top