New to Kendo UI for Angular? Start a free 30-day trial
Persisting the Disabled State
The TreeView enables you to define and persist the disabled state of its nodes when the component is re-rendered.
Basics
The TreeView determines the disabled state of its nodes by exposing the isDisabled
function.
Change Theme
Theme
Loading ...
Built-in Directives
To persist the disabled state of the TreeView, either:
Using the Built-In Directive
By default, the built-in DisableDirective
persists the disabled items based on their hierarchical index.
Change Theme
Theme
Loading ...
Setting an Item Field
You can also persist the disabled state of the TreeView by item field—for example, the text
field.
Change Theme
Theme
Loading ...
Disable Parent Nodes
By default, the TreeView
component disables all child nodes of a disabled node. The component can be configured to disable parent nodes only without disabling its children by setting the disableParentNodesOnly
field to true
.
Change Theme
Theme
Loading ...