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
ExpandAccessibility11/4/2024 6:39 AM
ExpandAppearance11/4/2024 6:39 AM
ExpandContent11/4/2024 6:40 AM
ExpandCustomization11/4/2024 6:40 AM
ExpandData11/4/2024 6:40 AM
ExpandEditing11/4/2024 6:40 AM
ExpandExport11/4/2024 6:40 AM
ExpandFiltering11/4/2024 6:40 AM
ExpandScripts11/4/2024 6:40 AM
ExpandSelection11/4/2024 6:40 AM
ExpandShaping11/4/2024 6:40 AM
ExpandSummary11/4/2024 6:40 AM
ExpandUserControls11/4/2024 6:40 AM
 Default.aspx11/4/2024 6:07 AM
 Error404.aspx11/4/2024 6:07 AM
 Error500.aspx11/4/2024 6:07 AM
 Global.asax11/4/2024 6:07 AM
 PrecompiledApp.config11/4/2024 6:07 AM
 web.config11/4/2024 6:07 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