This sample demonstrates the Tree Grid component with the horizontal and vertical scrollbars to view the exceeded Tree Grid content.
The Tree Grid will show scrollbars when the content exceeds the element's width or height. The vertical and horizontal scrollbars will be displayed based on the following criteria.
The height
and width
properties are used to set the Tree Grid height and width, respectively. The value of these properties can be a numeric, pixel(px
) or percentage (%
).
In this demo, the height
and width
properties of the Tree Grid are set to 400 and auto,
respectively. Now, the Tree Grid will render with a vertical scrollbar when the total height of rows
exceeds its element height and horizontal scrollbar will appear when the
total column width exceeds the element's width.