TreeListBase.AllowEmptySelection

Syntax

AllowEmptySelection: Boolean;

Description

The AllowEmptySelection property determines whether zero selection is available.

Comments

Use the setAllowEmptySelection method to set the property value, and the getAllowEmptySelection method to get the property value.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Allow zero selection
Tree.setAllowEmptySelection(false);

After executing the example mandatory selection of at least one element is set.

See also:

TreeListBase