Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Virtual Mode

 
File name
Creation Date
ExpandCode3/14/2024 8:57 AM
ExpandContent3/14/2024 8:57 AM
ExpandControllers3/14/2024 8:57 AM
ExpandModels3/14/2024 8:57 AM
ExpandScripts3/14/2024 8:57 AM
ExpandViews3/14/2024 8:57 AM
 Global.asax3/14/2024 6:34 AM
 Global.asax.cs3/14/2024 6:34 AM
 gulpfile.js3/14/2024 6:34 AM
 package.json3/14/2024 6:34 AM
 packages.config3/14/2024 6:34 AM
 PrecompiledApp.config3/14/2024 6:34 AM
 Web.config3/14/2024 6:34 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.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxTreeListDemos