Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]HTML Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Collapse]Navigation and Layout Extensions
   [Expand]FormLayout
   [Expand]Menu
   [Expand]NavBar
   [Expand]Ribbon
   [Expand]PageControl
   [Expand]TabControl
   [Expand]PopupMenu
   [Expand]Splitter
   [Collapse]TreeView
     Overview - TreeView
    [Collapse]Concepts
      Node
     [Collapse]Binding to Data
       Binding to Data Overview
       Data Binding Using Mapping Properties
       Automatic Data Binding
       Unbound Mode
       Virtual Mode
      Expanding and Collapsing Nodes
      Animation Effect
      Selection
      Node Link Mode
      Check Box Support
      Callbacks
      Templates
    [Expand]Visual Elements
   [Expand]Panel
  [Expand]File Management
  [Expand]Multi-Use Site Extensions
  [Expand]Charts
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Tree List
  [Expand]Data Editor Extensions
  [Expand]Report Extensions
  [Expand]SpellChecker
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Virtual Mode

In addition to bound and unbound modes, the MVC TreeView can operate in a Virtual Mode, which significantly reduces a server's load and start-up time when working with complex or dynamically generated hierarchies. In a Virtual Mode, data is retrieved on the server in chunks upon client requests. In essence, child nodes are not created and initialized until their parent node is expanded for the first time. This allows you to efficiently use server resources and avoid retrieving all hierarchical data for the TreeView.

The Virtual Mode is automatically activated if the TreeViewExtension.BindToVirtualData method is called. The method requires a delegate of the TreeViewVirtualModeCreateChildrenMethod type as a parameter that enables you to create a list of immediate child nodes for a particular node. Once assigned, this delegate method is called whenever a node is expanded for the first time. The processed node is passed as the method's parameter. To indicate that a child node has no children, its TreeViewVirtualNode.IsLeaf property must be set to true.

Note

The TreeViewSettings.SyncSelectionMode property affects the TreeView extension behavior in virtual mode.

Expanded Examples

Expanded See Also

How would you rate this topic?​​​​​​​