TreeListNode.Expanded Property

Gets or sets whether the node is expanded.

Namespace: DevExpress.Web.ASPxTreeList

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


public virtual bool Expanded { get; set; }
Public Overridable Property Expanded As Boolean

Property Value

Type Description

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


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