This is a migrated thread and some comments may be shown as answers.

DropDownTree Clear Option

1 Answer 71 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Ludovic
Top achievements
Rank 1
Ludovic asked on 14 Mar 2017, 10:40 AM

Hello

I have a dropdowntree that is updated using a treelist.

I wish when I check a line in my treelist check the corresponding value in the dropdowntree.
But also uncheck the old value.

I use this for

dropdowntree.get_entries().clear()

This method works the first time but if I check a value a second time it no longer works.

I have that :
Dropdowntree.get_entries().count() = 0

1 Answer, 1 is accepted

Sort by
0
Ludovic
Top achievements
Rank 1
answered on 14 Mar 2017, 10:55 AM

I find the solution

var dropTree = document.getElementById('<%= RadDropDownTree.ClientID %>');
dropTree.control.get_entries().clear(); 

Tags
DropDownTree
Asked by
Ludovic
Top achievements
Rank 1
Answers by
Ludovic
Top achievements
Rank 1
Share this question
or