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

Adding treeview in combobox at runtime

1 Answer 85 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
pankaj
Top achievements
Rank 1
pankaj asked on 06 Oct 2008, 06:25 PM
Hi,
In my application it is decided on runtime that how many treeview in radCombobox i need. For this I am able to add the templates successfully at runtime. But in my code I had to declare the combobox at design time. Is it possible to add the combobox and all of treeview in ItemTemplate at runtime?
I tried to add combobox and template in OnInit event. I wrote the code to bind the template in combobox in page load event. I was not able to add this in !isPostBack condition. It is giving me javascript error of treeview control is null. Treeview control is added in ItemTemplate.

Thanks
Pankaj

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 07 Oct 2008, 04:33 AM
Hi Pankaj,

Check out the following code library submission which demonstrates how to dynamically create a combobox and place a load on demand treeview as an item template in it.
Load on demand TreeView in Combobox

Thanks
Shinu.
Tags
TreeView
Asked by
pankaj
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or