Change Theme Settings
Change Theme Settings
Show All Themes

Virtual Mode

 File nameCreation Date
ExpandCode1/20/2021 1:58 PM
ExpandContent1/20/2021 1:58 PM
ExpandControllers1/20/2021 1:58 PM
ExpandModels1/20/2021 1:58 PM
ExpandScripts1/20/2021 1:58 PM
ExpandViews1/20/2021 1:58 PM
 Global.asax1/20/2021 9:45 AM
 Global.asax.cs1/20/2021 9:45 AM
 gulpfile.js1/20/2021 9:45 AM
 package.json1/20/2021 9:45 AM
 packages.config1/20/2021 9:45 AM
 PrecompiledApp.config1/20/2021 9:45 AM
 Web.config1/20/2021 9:45 AM

In addition to bound and unbound modes, the TreeList extension can operate in a Virtual Mode, which greatly reduces both the server load and start-up time when working with complex or dynamically created data. In a virtual mode, a tree is created on demand. In this instance, child nodes are created and initialized when their parent node is expanded.

To implement a virtual mode for the TreeList extension, a specifically parameterized BindToVirtualData method can be used. The method's parameters refer to delegate methods that can be declared as static methods within a model class. Within the first delegate method, create a list of business objects that correspond to the child nodes owned by the processed node. The second one enables you to specify the node's key value and cell values.

In this demo, the TreeList extension uses this data binding method to display the file/folder tree of this demo's website.