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

[Solved] Treeview inside of a combobox inside of a radpanelbar

0 Answers 119 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Pepito
Top achievements
Rank 1
Pepito asked on 29 Apr 2008, 03:57 PM

Hi Telerik:

 I am gonna simplify the problem.

Basically, there is a combobox inside of a  treeview like the  demo example.

The problem is the the combobox is inside of a radpanelbar. nad when i try to get
the object (the treeview by code, i get null)

so i try to get the instance in the following way:

TelerikQ1.

RadTreeView rtvgroupscombobox = (RadTreeView)

_rpbproductgroups_.FindItemByValue(

"_rpiproductgroups_").FindControl("_ctlparent_").FindControl("_rtvgroupscombobox_");

where :

rpbproductgroups is a Radpanelbar

rpiproductgroups is a Radpanelitem

_ctlparent_ is a combobox

_rtvgroupscombobox_ is a treeview

rtvgroupscombobox  is the object where i keep the treeview


or this other way : 


TelerikQ1.

RadTreeView _rtvgroupscombobox_ = (RadTreeView)

_rpbproductgroups_.FindItemByValue(

"_rpiproductgroups_").

FindControl(

"_rtvgroupscombobox_");

where : 

rpbproductgroups is a Radpanelbar

rpiproductgroups is a Radpanelitem

_rtvgroupscombobox_ is a treeview

rtvgroupscombobox  is the object where i keep the treeview



But it is always null.

How can i get it.

Regards.Pepito





No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Pepito
Top achievements
Rank 1
Share this question
or