The MultiSelectTree always displays checkboxes for managing its items selection.
You can control the behavior of the checkboxes through the
When you check an item that has children, you can choose whether they will also be automatically checked. To control this scenario, use the
checkChildren key of the
checkableSettings object. Its default value is
checkChildrenis enabled, you have to set
loadOnDemandto 'false'. Otherwise, after a checked item gets expanded and its inner items are loaded, the elected value and the checked items in the drop-down will no longer be in sync. Currently, such a scenario is not supported.
Along with the standard checkbox support, the MultiSelectTree allows you to manage the checked state of all nodes. To enable this functionality, set the
checkAll option to
When this options is enabled, a tristate checkbox appears above the embedded treeview. Clicking that checkbox will check or uncheck all the loaded enabled items of the treeview.
checkAllis set to
true, it should be used with
checkAllwill not interact with the collapsed (non-loaded) subnodes of the treeview and their checked state will not be updated.