Skip to main content

headerAutoHeight

pro version only

This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.

Optional. Allows adjusting the height of the header for the content to fit in

headerAutoHeight?: boolean;

Default value: false

Example

const grid = new dhx.Grid("grid_container", {
columns: [
// columns config
],
data: dataset,
autoHeight: false, // disable autoHeight in the data, the header and the footer
headerAutoHeight: true // enable autoHeight in the header
});

Related sample: Grid. Header/footer autoHeight mode

Redefines the autoHeight config for the header.

Ignored when headerRowHeight is set as an array: in that case the height of each level of the header is defined by the corresponding array item, and only the "auto" items fit their content.

Change log:

  • Since v9.4, ignored when headerRowHeight is set as an array
  • Added in v8.3