Free Trial Buy Now

Tree View - Virtual Mode

  • Expand
    Callback
  • Expand
    CallbackPanel
  • Expand
    CloudControl
  • Expand
    Common
  • Expand
    Content
  • Expand
    DataView
  • Expand
    Docking
  • Expand
    FileManager
  • Expand
    FormLayout
  • Expand
    Headline
  • Expand
    HiddenField
  • Expand
    ImageSlider
  • Expand
    LoadingPanel
  • Expand
    Menu
  • Expand
    NavBar
  • Expand
    NewsControl
  • Expand
    ObjectContainer
  • Expand
    Pager
  • Expand
    PopupControl
  • Expand
    RatingControl
  • Expand
    RoundPanel
  • Expand
    Scripts
  • Expand
    SiteMap
  • Expand
    Splitter
  • Expand
    TabControl
  • Expand
    Timer
  • Expand
    TitleIndex
  • Expand
    TreeView
  • Expand
    UploadControl
  • Expand
    UserControls
  • Default.aspx
  • PrecompiledApp.config
  • Web.config

Description

This demo shows how Virtual Mode helps you improve tree view performance.

In addition to bound and unbound modes, the ASPxTreeView can operate in Virtual Mode, which greatly reduces both server load and start-up time when working with complex or dynamically created hierarchies. In Virtual Mode, data is retrieved on the server in portions, on a client request, at start-up and when expanding nodes. In essence, child nodes are created and initialized only when their parent node is expanded for the first time. This allows you to efficiently use server resources and to avoid retrieving the entire amount of hierarchical data for the ASPxTreeView.

To activate Virtual Mode for the ASPxTreeView, handle its VirtualModeCreateChildren event, which occurs when expanding nodes for the first time. Within the event handler, you need to create a list of TreeViewVirtualNode objects representing child nodes for the currently expanded node. If a child node has no children, set its IsLeaf property to true, to not show the expand button for this node.

In this demo, the ASPxTreeView uses Virtual Mode to display the file/folder tree of the demo's web site.

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 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.