Tab
A newer version of this page is available. Switch to the current version.

TreeViewVirtualNode Class

A virtual equivalent of the ASPxTreeView's TreeViewNode object.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class TreeViewVirtualNode :
    TreeViewNode,
    ITreeViewVirtualNode
Public Class TreeViewVirtualNode
    Inherits TreeViewNode
    Implements ITreeViewVirtualNode

Remarks

In virtual mode nodes should be created in the VirtualModeCreateChildren event handler. If a node has no children in virtual mode, set the TreeViewVirtualNode.IsLeaf property to true, to hide the expand button for this node.

Examples

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

<dx:ASPxTreeView ID="treeView" runat="server" EnableCallBacks="true" OnVirtualModeCreateChildren="treeView_VirtualModeCreateChildren">
</dx:ASPxTreeView>

Inheritance

See Also