TreeListNode.Expanded Property

Gets or sets whether the node is expanded.

Namespace: DevExpress.Web.ASPxTreeList

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

Declaration

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

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