Free Trial Buy Now

TreeView - Virtual Mode

  • Expand
    Code
  • Expand
    Content
  • Expand
    Controllers
  • Expand
    Dictionaries
  • Expand
    Models
  • Expand
    Properties
  • Expand
    Scripts
  • Expand
    thumb
  • Expand
    Views
  • Global.asax.cs
  • PrecompiledApp.config
  • Web.config

Description

In addition to bound and unbound modes, the TreeView extension can operate in a Virtual Mode, which greatly reduces both the server load and start-up time when working with complex or dynamically created data. In a virtual mode, a tree is created on demand. In this instance, child nodes are created and initialized when their parent node is expanded.

To implement a virtual mode for the TreeView extension, you should use a specifically parameterized BindToVirtualData method. The method's parameter refers to the delegate method that can be declared as a static method within a model class. Within this delegate method, create a list of business objects that correspond to the child nodes owned by the processed node.

In this demo, the TreeView extension uses this data binding method to display the file/folder tree of this demo's website.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress MVC Extensions 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.