radcombobox with radtreeview inside (load on demand)

4 posts, 0 answers
  1. Samir
    Samir avatar
    8 posts
    Member since:
    Jul 2009

    Posted 24 May 2010 Link to this post

    Hi -

     I have a radcombobox with a radtreeview inside it (using itemtemplate). I want to load on demand. How do i do this? Has any one done it, or has an example, or an idea on how to go abt this? appreciate it

    thanks
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 May 2010 Link to this post

    Hello,

    You can check this code library: Load on demand TreeView in Combobox

    I hope this helps.
    Princy.
  3. Carrie
    Carrie avatar
    1 posts
    Member since:
    Nov 2010

    Posted 23 Nov 2010 Link to this post

    Do you have a solution to this in VB.net instead of C#?  I'm trying to load the radTreeView (inside the radComboBox) on page load from items in a database.  I'm not necessarily needing to create the entire control dynamically, but rather just add nodes when the page loads.  I thought maybe if I structured my aspx code like I have shown below, I would be able to access the attributes of the radTreeView by using the "radTreeProduct" ID, but I can't get the code behind to recognize the ID.

    <telerik:RadComboBox ID="radDDLProduct" 
                         runat="server" 
                         AutoPostBack="true"
                         style="width:96%" 
                         Skin="Default">
        <ItemTemplate>
            <telerik:RadTreeView ID="RadTreeProduct" 
                                 Enabled="true"  
                                 runat="server" 
                                 CausesValidation="false" 
                                 OnNodeClick="RadTreeProduct_NodeClick">
                <Nodes>
                    <!-- Nodes to be generated on page load -->
                </Nodes>
            </telerik:RadTreeView> 
        </ItemTemplate>
        <Items>
            <telerik:RadComboBoxItem runat="server" />
        </Items>
    </telerik:RadComboBox>
     

     

     

     

     

     

     

     

     

  4. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 26 Nov 2010 Link to this post

    Hello,

    Please find the VB version in the attached .zip file.

    Feel free to ask me if you have further questions.

    Kind regards,
    Veronica Milcheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top