Skip to main content

Expand Button

A node expand button (located in node indents) shows a node‘s expanded state and enables end-users to change the state by clicking this button.

By default, the expand button occupies the leftmost position in a node. You can change this position by specifying the expandable band in which the expand button will reside.

The table below lists the main properties that relate to expand buttons.

Visibility

For root level nodes, the TreeList control’s OptionsView.ShowRoot property.

To hide all expand buttons, set the TreeList control’s OptionsView.Buttons property to False. Alternatively, you can assign tlbeNotExpandable to the Expandable property of all visible bands.

Position

A band’s Expandable property. The expand button’s location can only be changed in the banded layout.

Appearance

Handle the TreeList control’s Styles.OnGetNodeIndentStyle event to dynamically customize the expand button’s style settings.

Custom Draw Event

The TreeList control’s OnCustomDrawIndentCell event.

HitTest Information

The TreeList control’s HitTest.HitAtButton, HitTest.HitAtIndent, and HitTest.HitAtNode properties.

See Also