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
ExpandAccessibility12/12/2024 4:30 AM
ExpandAppearance12/12/2024 4:30 AM
ExpandContent12/12/2024 4:32 AM
ExpandCustomization12/12/2024 4:32 AM
ExpandData12/12/2024 4:32 AM
ExpandEditing12/12/2024 4:32 AM
ExpandExport12/12/2024 4:32 AM
ExpandFiltering12/12/2024 4:32 AM
ExpandScripts12/12/2024 4:32 AM
ExpandSelection12/12/2024 4:32 AM
ExpandShaping12/12/2024 4:32 AM
ExpandSummary12/12/2024 4:32 AM
ExpandUserControls12/12/2024 4:32 AM
 Default.aspx12/12/2024 2:53 AM
 Error404.aspx12/12/2024 2:53 AM
 Error500.aspx12/12/2024 2:53 AM
 Global.asax12/12/2024 2:53 AM
 PrecompiledApp.config12/12/2024 2:53 AM
 web.config12/12/2024 2:53 AM

In addition to bound and unbound modes, the DevExpress ASP.NET Tree List (ASPxTreeList) can operate in Virtual Mode. This mode is useful when binding to large data sets.

In virtual mode, a tree is created on demand. In this case, child nodes are created and initialized when the parent node is expanded.

The ASPxTreeList fires the following two events, which you should process in code.

Within the VirtualModeCreateChildren event handler, create a list of business objects that correspond to the child nodes owned by the processed node.

The VirtualModeNodeCreating event is raised for each node object created within the VirtualModeCreateChildren event handler. This event enables you to initialize the corresponding node in a tree. Here, you should specify the node's key value and cell values. If you are certain that the processed node has no child nodes, set the event parameter's e.IsLeaf property to true.

In the demo, the ASPxTreeList control uses this data binding method to display the file/folder tree of this demo web site.

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
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxTreeListDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxTreeListDemos