Unplanned
Last Updated: 21 Sep 2021 09:56 by Grant
Grant
Created on: 20 Sep 2021 08:29
Category: KendoReact
Type: Feature Request
3
Separate disable

Hi Team, 

I have the following Feature Request:

 

### Current Behavior
When the 'disabled' attribute is true for a TreeView node, the entire node is disabled, preventing the user from selecting, expanding and checking.

 

### Desired Behavior
To be able to specify what functionality of the node to disable, select and/or expand and/or check or all.

 

### Use case

1) A TreeView displays a list of Countries that when;
1.1) expanded, displays a list of provinces as items.
1.2) selected, filters a list of cities in a different component by the selected node (country or province)
1.3) checked, indicates business coverage for that region.

My use case dictates that once an area has been checked it cannot be unchecked. But the same node whose checked state must be disabled, still needs to be expandable and selectable for the above reasons, for viewing purposes.

5 comments
Grant
Posted on: 21 Sep 2021 09:56

Hi Stefen,

Thanks for clarifying, I misunderstood.

-G

ADMIN
Stefan
Posted on: 21 Sep 2021 09:21

Hello, Grant,

Yes, this is the reason for the issue. Currently, the component only gives the content of the item. The issue aims to provide the full item render, the entire li element with the checkbox, expand collapse, and the text.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Grant
Posted on: 21 Sep 2021 09:17

Hi Stefan, 

Thanks for telling me about this issue, but the TreeView item function only gives me access to the item content after the checkbox, so I cannot disable just the checkbox based on some item property, its either the entire node, or not atall.

Regards,
Grant

ADMIN
Stefan
Posted on: 21 Sep 2021 07:25

Hello, Grant,

Thank you for the request.

I will also share this link here:

https://github.com/telerik/kendo-react/issues/828

It is not the same request, but when implemented will allow the developer full control over the item rendering and the developer can disable only the elements that need to be disabled.

We will also monitor the interest for this specific feature.

I have updated the title as well.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Grant
Posted on: 20 Sep 2021 08:35
Sorry about the bad title, I forgot to update it after I had described my feature. If you can update it, please do so to:
"Specify what must be disabled for a TreeView node (select/expand/check)"