Data Binding - Virtual Mode

 File nameCreation Date
[Expand]Appearance10/8/2008 3:04 AM
[Expand]CSS10/8/2008 3:04 AM
[Expand]Data10/8/2008 3:04 AM
[Expand]Editing10/8/2008 3:04 AM
[Expand]Export10/8/2008 3:04 AM
[Expand]Images10/8/2008 3:04 AM
[Expand]Scripts10/8/2008 3:04 AM
[Expand]Selection10/8/2008 3:04 AM
[Expand]Shaping10/8/2008 3:04 AM
[Expand]Summary10/8/2008 3:04 AM
 ASPxTreeList.ico10/8/2008 3:04 AM
 Default.aspx10/8/2008 3:04 AM
 Demo.master10/8/2008 3:04 AM
 PrecompiledApp.config10/8/2008 3:04 AM
 SiteMap.aspx10/8/2008 3:04 AM
 Web.config10/8/2008 3:04 AM
Description
C#
VB
ASPX

In addition to bound and unbound modes, the ASPxTreeList can operate in Virtual Mode. This mode can be useful when binding to large data sets.

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

The ASPxTreeList fires two events that you should process in code. These include:

  • VirtualModeCreateChildren;
  • VirtualModeNodeCreating.

Within the VirtualModeCreateChildren event handler you should 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 thee 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 this demo, the ASPxTreeList control uses this data binding method to display the file/folder tree of this demo web site.