Change Theme Settings
Change Theme Settings
Themes
 
Metropolis
Moderno
iOS
Material
Material Compact
Office 365
Mulberry
Show All Themes
v
...v

Virtual Mode

 File nameCreation Date
ExpandCode11/16/2017 4:46 AM
ExpandContent11/16/2017 4:46 AM
ExpandControllers11/16/2017 4:46 AM
ExpandModels11/16/2017 4:46 AM
ExpandProperties11/16/2017 4:46 AM
ExpandScripts11/16/2017 4:46 AM
ExpandViews11/16/2017 4:46 AM
 Global.asax11/16/2017 2:01 AM
 Global.asax.cs11/16/2017 2:01 AM
 gulpfile.js11/16/2017 2:01 AM
 package.json11/16/2017 2:01 AM
 packages.config11/16/2017 2:01 AM
 PrecompiledApp.config11/16/2017 2:01 AM
 Web.config11/16/2017 2:01 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.