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

combobox with Tree

1 Answer 131 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 19 May 2008, 07:55 PM
I'm trying to populate a treeview in a combo box with data from a dataset.  The data is a heirical dataset and binding outside of the webcombo works fine.  But when I put the tree into the item template  I can no longer access the treecontrol - so when I load the page I thought I cold just do webcombo.findcontrol("treename") - cast that to a tree control and bind - but keep getting null object... This is my first attempt at using a Telerik control - can someone point me in the right direction?  Need to know how to bind to a tree nested in a webcombo?  Do I bind to the combo and let it propigated to the tree?

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 20 May 2008, 07:22 AM
Hi Ken,

You need to find the treeview in this way:

webcombo.Items[0].findcontrol("treename") and cast it to RadTreeView. Just make sure that you have at least one item.

I hope this helps.

Regards,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Ken
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or