Clear all selection in DropDownTree with checkboxes with jQuery

1 Answer 508 Views
DropDownTree
Peter
Top achievements
Rank 1
Peter asked on 21 Jul 2022, 11:08 AM

Hello There,

I have a similar DropDownTree in my project.

I do not want to use clearButton, I would like to create a button with onClick clear out selected values and also the checkBox selection.

What I have tried: the used selectedIds= [] but on UI the tags stucked there, can not removed at all.

Thanks for your help!

Cheers,
Peter

1 Answer, 1 is accepted

Sort by
0
Lyuboslav
Telerik team
answered on 25 Jul 2022, 08:22 AM

Hello Peter,

You can use the value method to clear all selected items. You will need to pass an empty string as a parameter. Here is an example:

- https://dojo.telerik.com/iwoXeFar

I hope this will help you to reach your goal.

Regards,
Lyuboslav
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
DropDownTree
Asked by
Peter
Top achievements
Rank 1
Answers by
Lyuboslav
Telerik team
Share this question
or