# Checkboxes

The MultiSelectTree always displays checkboxes for managing its items selection.

You can control the behavior of the checkboxes through the [`checkableSettings`](https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/multiselecttreecomponent#checkablesettings) input.

## Checking the Children of an Item

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`](https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/multiselecttreecheckablesettings#checkchildren) key of the [`checkableSettings`](https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/multiselecttreecomponent#checkablesettings) object. Its default value is `true`.

> When `checkChildren` is enabled, you have to set [`loadOnDemand`](https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/multiselecttreecomponent#loadondemand) to `false`. Otherwise, after a checked item gets expanded and its inner items are loaded, the selected value and the checked items in the drop-down will no longer be in sync. Currently, such a scenario is not supported.

## Controlling the Selection of Items

You can specify whether clicking the checkboxes is mandatory for toggling the item selection. This is controlled by the [`checkOnClick`](https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/multiselecttreecheckablesettings#checkonclick) key of the [`checkableSettings`](https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/multiselecttreecomponent#checkablesettings) object. Its default value is `true`.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dropdowns/multiselecttree/checkboxes/checkable-settings/source.txt)

## Check All

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`](https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/multiselecttreecomponent#checkall) option to `true`.

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.

> When `checkAll` is set to `true`, it should be used with [`loadOnDemand`](https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/multiselecttreecomponent#loadondemand) set to `false`. Otherwise `checkAll` will not interact with the collapsed (non-loaded) subnodes of the treeview and their checked state will not be updated.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dropdowns/multiselecttree/checkboxes/check-all/source.txt)

## Suggested Links

* [API Reference of the MultiSelectTree](https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/multiselecttreecomponent)
* [Prevent Selection of Parent Nodes](https://www.telerik.com/kendo-angular-ui-develop/components/knowledge-base/multiselecttree-prevent-parent-nodes-selection)
