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

TreeView combined with ComboBox, how to import nodes?

2 Answers 72 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Dariusz
Top achievements
Rank 1
Dariusz asked on 13 Oct 2011, 01:59 PM
Hello,

I'm using TreeView combined with ComboBox just like it's here:
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx?product=treeview

First basic question is - is that connection client-side and it's only possible that way? 

Next:
I'm trying to load nodes into TreeView instead of writing them manually like in the example.
But I can't access TreeView from server-side code.

How can I do it other way?

Regards
Darek

2 Answers, 1 is accepted

Sort by
0
Accepted
Kevin
Top achievements
Rank 2
answered on 14 Oct 2011, 08:47 PM
Hello Dariusz,

As you might have noticed in the example, they add an empty RadComboBoxItem that implements the ItemTemplate of the RadTreeView. So to access the RadTreeView inside the RadComboBox, you would do something like this:

RadTreeView radTreeView1 = (RadTreeView)RadComboBox1.Items[0].FindControl("RadTreeView1");

You can then do whatever you want to the RadTreeView.
0
Dariusz
Top achievements
Rank 1
answered on 21 Oct 2011, 11:26 AM
Thank You :) Worked
Tags
TreeView
Asked by
Dariusz
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Dariusz
Top achievements
Rank 1
Share this question
or