Skip to main content
A newer version of this page is available. .
Tab

TreeViewVirtualNode.IsLeaf Property

Gets or sets whether the virtual node doesn’t have any child nodes.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public bool IsLeaf { get; set; }

Property Value

Type Description
Boolean

true if the node has zero child nodes; otherwise, false.

Remarks

If a node has no children in virtual mode, set the IsLeaf property to true, to not show the expand button for this node.

Example

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>
See Also