Adding treeview in combobox at runtime

2 posts, 1 answers
  1. pankaj
    pankaj avatar
    12 posts
    Member since:
    Oct 2008

    Posted 06 Oct 2008 Link to this post

    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
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Oct 2008 Link to this post

    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.
Back to Top