Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.CheckAll() Method

In This Article

Checks all TreeList nodes.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public void CheckAll()

#Remarks

TreeList nodes can display radio buttons instead of regular check boxes. Radio buttons are mutually exclusive options.

If any radio button is checked and you select another sibling radio button, the former radio button is automatically deactivated.

The CheckAll method’s behavior is as follows when nodes display radio buttons:

  • If no radio button is checked at a specific tree level, TreeList checks the first radio button and all its children.

    The check states of other sibling nodes and their children are not modified.

  • If any radio button is checked at a specific tree level, TreeList retains the checked state for this button and then checks all its children.

    The check states of other sibling nodes and their children are not modified.

To check a specific tree node (and optionally its children), use the TreeList.SetNodeCheckState method.

See Node Checking - Checkboxes and Radio Buttons to learn more.

See Also