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

Remove all items from dropdowntree

1 Answer 179 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 30 Mar 2016, 06:18 AM

Hi,

 Based on parent dropdowntree i have to bind child dropdowntree.

when i select --select-- in parent dropdowntree child should be blank.

 

i used

dd.DataSource=Nothing

dd.Databind()

but it not working

 

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 04 Apr 2016, 06:49 AM
Hello Sandeep,

In order to remove all nodes from a DropDownTree, you can call its EmbeddedTree NodeCollection's Clear() method as shown below:
RadDropDownTree2.EmbeddedTree.Nodes.Clear();

If you want to remove the nodes based on a selection made in another DropDownTree you can use its OnEntryAdded server-side event and call the method posted above in its handler.

Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
DropDownTree
Asked by
Sandeep
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or