This sample demonstrates the Tree Grid component with the virtual scrolling feature. Scroll the Tree Grid content vertically to load rows.
Player Jersey | Player Name | Year | Stint | TMID |
---|---|---|---|---|
No records to display |
The Tree Grid UI virtualization allows you to render only rows visible within the view-port without buffering the entire datasource. To enable the virtualization, set enableVirtualization
property as true.
By default, enableVirtualMaskRow
is set to true. we can change by setting enableVirtualMaskRow
property to false.
Note: The height
property must be defined when enabling enableVirtualization
.
In this demo, Tree Grid is enabled with row virtualization and also perform the CRUD (Add, Edit, Delete, Update) actions.
Injecting Module:
Tree Grid component features are segregated into individual feature-wise modules. To use Virtualscrolling feature, we need to inject VirtualScrollService
into the @NgModule.providers
section.