Skip to main content

ASPxTreeList.GetSelectedNodes(Boolean) Method

Returns a list of selected nodes.

Namespace: DevExpress.Web.ASPxTreeList

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

Declaration

public List<TreeListNode> GetSelectedNodes(
    bool visibleOnly
)

Parameters

Name Type Description
visibleOnly Boolean

true to return selected nodes that are visible on-screen; false to return all selected nodes contained within the ASPxTreeList.

Returns

Type Description
List<TreeListNode>

The list of TreeListNode objects that represent nodes currently being selected.

Remarks

To obtain the number of selected nodes within the ASPxTreeList, use the ASPxTreeList.SelectionCount property.

To learn more, see Selection.

Note

In virtual mode, the GetSelectedNodes method does not return invisible nodes. To learn more, see the Virtual Mode topic.

See Also