Skip to main content

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

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