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

TreeListOptionsMenu.ShowExpandCollapseItems Property

Gets or sets whether to show the expand/collapse commands in the context menu invoked with a right-click on a node.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowExpandCollapseItems { get; set; }

#Property Value

Type Default Description
Boolean true

true, to show the expand/collapse commands in the context menu invoked with a right-click on a node; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to ShowExpandCollapseItems
TreeList
.OptionsMenu .ShowExpandCollapseItems

#Remarks

The Node Context Menu displays the following predefined items:

  • Collapse (Expand) – collapses (expands) the clicked node. This command is only shown when the node has children.
  • Full Collapse – collapses all nodes.
  • Full Expand – expands all nodes.

Use the ShowExpandCollapseItems property to hide these items.

image

Refer to the following help topic for more information: Node Context Menu.

See Also