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

TreeListNode.HasChildren Property

Gets whether the node has children.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public bool HasChildren { get; }

Property Value

Type Description
Boolean

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

Remarks

Nodes hold their child nodes within the TreeListNode.ChildNodes collection. If this collection is empty, the HasChildren property returns false.

To learn more, see Nodes.

The following code snippets (auto-collected from DevExpress Examples) contain references to the HasChildren property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also