Free Trial Buy Now

Data Binding - Virtual Mode

 File nameCreation Date
[Expand]Accessibility4/11/2012 8:59 AM
[Expand]Appearance4/11/2012 8:59 AM
[Expand]Content4/11/2012 9:00 AM
[Expand]Data4/11/2012 9:00 AM
[Expand]Editing4/11/2012 9:00 AM
[Expand]Export4/11/2012 9:00 AM
[Expand]Scripts4/11/2012 9:00 AM
[Expand]Selection4/11/2012 9:00 AM
[Expand]Shaping4/11/2012 9:00 AM
[Expand]Summary4/11/2012 9:00 AM
[Expand]UserControls4/11/2012 9:00 AM
 Default.aspx8/22/2011 8:10 AM
 PrecompiledApp.config4/11/2012 8:44 AM
 web.config4/11/2012 8:44 AM

Description

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

Version: v2011 vol 2.11
Experience the DevExpress Difference Today
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.