Skip to main content


Optional. Sets the height of an item

itemHeight?: number | string;

Default value: "auto" - adjusts to the height of the content


// sets the height of an item as a number
const dataview = new dhx.DataView("dataview_container", {

// sets the height of an item as a string value
const dataview = new dhx.DataView("dataview_container", {

Related sample: Dataview. Setup Dataview item height

Note that the value of the itemHeight property is ignored when you use a template for DataView items.

The usage of the CSS calc() function within the itemHeight property is not possible.