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

[Solved] Databound radTreeView in Comobox

2 Answers 121 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
radBrad
Top achievements
Rank 1
radBrad asked on 27 Apr 2008, 01:01 AM
I'm trying to figure out how I can databind a radTreeView that is inside of a radComboBox.

<telerik:RadComboBox ID="radComboBox" runat="server" >
    <ItemTemplate>
        <div id="div1">
            <telerik:RadTreeView runat="server" ID="radTreeView" />
        </div>
    </ItemTemplate>
</telerik:RadComboBox>


I have tried the following ServerSide code to no avail:

Dim radTreeView As RadTreeView = CType(radComboSource.FindControl("radTreeSource"
), RadTreeView)

Thanks to anyone who can help!

2 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 28 Apr 2008, 08:15 AM
Hi Brad,

RadTreeView is a template of the RadComboBox item, not of the RadComboBox itself. I suggest you try the following code:

Dim radTreeView As RadTreeView = CType(radComboBox.Items(0).FindControl("radTreeSource"), RadTreeView)

If this does not help you, please open a support ticket and send us a simple running project illustrating the problem.


Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
radBrad
Top achievements
Rank 1
answered on 28 Apr 2008, 11:11 AM
Thanks Rosi, that is exactly what I needed!
Tags
ComboBox
Asked by
radBrad
Top achievements
Rank 1
Answers by
Rosi
Telerik team
radBrad
Top achievements
Rank 1
Share this question
or