Skip to main content

TreeListNode.Expanded Property

Gets or sets whether the node is expanded.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public virtual bool Expanded { get; set; }

Property Value

Type Description
Boolean

true to expand the node; false to collapse the node.

Remarks

Setting the Expanded property does nothing if the node has no child nodes. To obtain whether a node has children, use the TreeListNode.HasChildren property.

Before a node is expanded or collapsed, the ASPxTreeList.NodeExpanding or ASPxTreeList.NodeCollapsing event is raised. These events enable you to cancel the operation.

See Also