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

TreeListNode.Expanded Property

Gets or sets whether the node is expanded.

Namespace: DevExpress.Web.ASPxTreeList

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

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