Example of Lazy Loading in Blazor TreeView Component
The Blazor TreeView sample demonstrates the load on demand functionality of the TreeView
. Click on the expand/collapse icon or double click node to expand the parent node. It loads the child nodes on demand based on the parentID/child
member.
The TreeView
component has a built-in load on demand functionality support. This allows the user to load only the first level of nodes in the TreeView
on initial loading to reduce the bandwidth size when consuming huge data. This support can be enabled or disabled using the LoadOnDemand property.