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

Virtual Mode

File name
Creation Date
ExpandAccessibility3/14/2024 7:38 AM
ExpandAppearance3/14/2024 7:38 AM
ExpandContent3/14/2024 7:40 AM
ExpandCustomization3/14/2024 7:40 AM
ExpandData3/14/2024 7:40 AM
ExpandEditing3/14/2024 7:40 AM
ExpandExport3/14/2024 7:40 AM
ExpandFiltering3/14/2024 7:40 AM
ExpandScripts3/14/2024 7:40 AM
ExpandSelection3/14/2024 7:40 AM
ExpandShaping3/14/2024 7:40 AM
ExpandSummary3/14/2024 7:40 AM
ExpandUserControls3/14/2024 7:40 AM
 Default.aspx3/14/2024 6:30 AM
 Error404.aspx3/14/2024 6:30 AM
 Error500.aspx3/14/2024 6:30 AM
 Global.asax3/14/2024 6:30 AM
 PrecompiledApp.config3/14/2024 6:30 AM
 web.config3/14/2024 6:30 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.

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