Column WidthsPremium
By default, the KendoReact TreeList is responsive and has no fix width—the component behaves like an HTML table and expands to the width of the parent element.
Getting Started
By default, the TreeList will equally divide its width between its columns and it will responsively expand or shrink them when the width of its parent container is changed.
- To set the column widths of the TreeList, use the
widthproperty of theTreeListColumnProps. The width values will be passed to the HTMLcolelements of the underlying table element as they are. - To set the
widthof the TreeListwrapperelement, use the TreeListstyleproperty. - To set the width and any other property of the underlying HTML table, use the
tablePropsproperty of the TreeList which allows you to quickly resize the TreeList in the desired units.
Setting Column Widths in Percentage
To set the TreeList column widths in percentage, set the width values through the width property of the TreeListColumnProps. The width of the wrapper and table HTML block elements of the TreeList defaults to auto and the browser will expand them according to the available space. If your project requires you to limit the TreeList width, set the wrapper width through the TreeList style property.
Setting Fixed Column Width
To set the TreeList column widths in pixels, set the width values through the width property of the TreeListColumnProps, and the wrapper and table HTML widths which will be the sum of the widths of all columns.