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

[Solved] TreeView with combobox

1 Answer 154 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Asra
Top achievements
Rank 1
Asra asked on 28 May 2009, 11:09 AM
hi ALL,
       I am trying to implement  RADTreeView in the RADCombox box. Iam adding all the items in the source. In the code behind iam using RADTreeView_Node Click event to get the selected value of the tree. when i click on the Treeview I should get the selected value of the tree into combobox.

But when iam selecting the value in the TreeView, it should get displayed in the combox box.

If i write like this 

 

RadTreeView treeView1 = (RadTreeView)RadCombobox2.Controls[2].FindControl("RadTreeCombo");

 

RadCombobox2.Text = treeView1.SelectedNode.Text;

I can see that text is added to the combobox , when i keep break point.

But when the page is displayed iam not able to see the value in the comobox.
Do i need to write any other events for this.

Pls help me out........

Regards,
Asra

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 May 2009, 12:00 PM
Hi Asra,

Have you checked the online demo which shows how to embed RadTreeView in a RadComboBox?
TreeView in ComboBox

In the demo, it shows how to set the Text of the RadComboBox upon clicking on a RadTreeNode, and this is achieved via OnClientNodeClicking event of TreeView. Hope this would be helpful.

Thanks,
Shinu.
Tags
ComboBox
Asked by
Asra
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or