DimTreeView.getAllowEmptySelection

Syntax

getAllowEmptySelection ();

Description

The getAllowEmptySelection method determines whether the selection can be fully removed when a single element is selected.

Comments

By default the selection can be fully removed in case of single selection. To disable this opportunity, select False in the _AllowEmptySelection field.

Example

To execute the example, the HTML page must contain the DimTree component named dimTree (see Example of Creating the DimTree Component). In the BODY tag add the DIV element with the Div2 identifier. Add a button named button1:

            button1.Click.add(function (sender, args) {
                //if selection can be removed in case of single selection  
                if (dimTree.getAllowEmptySelection() == true) {
                    //disable this option
                    dimTree._AllowEmptySelection = false;
                }
            });

After executing the example if the getAllowEmptySelection method returns True, on clicking the button the option that enables the user to fully remove selection in case of single selection is disabled.

See also:

DimTreeView