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

radcombobox with radtreeview inside (load on demand)

3 Answers 127 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Samir
Top achievements
Rank 1
Samir asked on 24 May 2010, 09:04 PM
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

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 May 2010, 09:02 AM
Hello,

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

I hope this helps.
Princy.
0
Carrie
Top achievements
Rank 1
answered on 23 Nov 2010, 09:12 PM
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>
 

 

 

 

 

 

 

 

 

0
Veronica
Telerik team
answered on 26 Nov 2010, 10:59 AM
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.
Tags
ComboBox
Asked by
Samir
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Carrie
Top achievements
Rank 1
Veronica
Telerik team
Share this question
or