SELECTEXPANDS Attribute | SelectExpands Property

Sets or retrieves a value that indicates whether or not a parent node expands or collapses when selected.

Syntax

ASP <tagPrefix:TREEVIEW SELECTEXPANDS = bSelectExpands ... >
Script [ bSelectExpands = ] TREEVIEW.SelectExpands

Possible Values

tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive.
bSelectExpands System.Boolean that specifies or receives whether or not a parent node expands or collapses when selected.
falseDefault. The node does not expand or collapse when its text is selected.
trueThe node expands or collapses when its text is selected.

The property is read/write. The property has a default value of false.

Remarks

When this property is true, the node expands and collapses when selected by either mouse or keyboard.

Property Information

Applies To

TREEVIEW

See Also

Internet Explorer WebControls, About the TreeView WebControl