click group name within dropdown to open tree, but the whole dropdown collapsed.

0 Answers 25 Views
DropDownTree General Discussions
Hu
Top achievements
Rank 1
Iron
Iron
Iron
Hu asked on 03 Jan 2024, 08:42 AM

Hi,

In our project, there are many groups and each one has many child items, so we want "click group name" have the same behavior to the "triangle expand/collapse button" on the left of group name, but now the whole dropdown collapsed when we click the group name, and or our project we just want the child items can be selected not the parent one(group name), is there anyway we can use to click group name to open/collapse the inner list without collapse the whole dropdown list?
Szkaan (forked) - StackBlitz

 

Regards,
Sunny Hu

Filip
Telerik team
commented on 05 Jan 2024, 07:27 AM

Hi, Hu,

I tested the provided example, I understand that if you select Furniture, for example, you wish to keep the dropdown open, is that correct? The DropDownTree exposes an opened prop which can be used to control the opened state of the component.

Regards,
Filip

No answers yet. Maybe you can help?

Tags
DropDownTree General Discussions
Asked by
Hu
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or