The TreeList can load a remote dataset dynamically as a user expands nodes. The dataset must have a plain structure.
This feature requires client- and server-side configurations. To configure the client-side part, do the following:
Send an expanded node's ID to the server
For this, implement the CustomStore's load function. In this demo, we do it in the dataSource configuration object.
Delegate filtering to the server
Set the remoteOperations.filtering property to true.
Specify the data field that defines whether the node has children
Use the hasItemsExpr property to set this data field.
Server-side implementation is available in the ASP.NET Core and ASP.NET MVC versions of this demo under the
This demo uses a simple data bind technique that is useful for data display purposes only. When a user clicks a node, TreeList receives a JSON object from the server, which is based on the parentIds property value. This technique does not support the built-in data process operations in TreeList on the server.
If your project needs to process data, do one of the following instead: