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

Raddropdowntree selectedIndex property on serverside.

1 Answer 130 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 15 Mar 2016, 07:07 AM
1. SelectedIndex property not available in raddropdowntree
2. Can not loop on all items in raddropdowntree
3. Not able to set node as selected by selectedindex
4. Is any alternative solutions for above problems

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 17 Mar 2016, 09:22 AM
Hello Sandeep,

The DropDownTree controls contains an Embedded TreeView control, which you need to use, in order to access the Nodes (loop all items) and use it to set certain node from the NodesCollection as selected.

In addition, in order to apply this selection to the DropDownTree, you need to call the SyncEmbeddedTree() method on the DropDownTree.

In the attachment you can find a sample example, demonstrating the above suggested approach.

Regards,
Nencho
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
Nencho
Telerik team
Share this question
or