I have a RadComboBox with a RadTreeView inside. All of this is inside a RadPanel. And the RadPanel is inside a UserControl, which is hosted by a master page which has a updatepanel around the entire thing.
In order to get the data from the treeview to the combo box, I wrote the following routine:
Unfortunately, it seems that every time I click on item in the tree, the entire page refreshes. It actually does a postback, but its as if there's no updatepanel. The entire page re-loads.
What am I doing wrong? Other RadCombo boxes on the same page that use the standard RadComboItem do not seem to have this problem. The button next to the control posts back correctly as well.
Any help is greatly appreciated!
Thanks,
Alex
<telerik:RadComboBox ID="lstCats" Runat="server" Skin="Gray" DropDownWidth="375px" Width="160px"> |
<Items> |
<telerik:RadComboBoxItem runat="server" Text="" Value="" /> |
</Items> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
<ItemTemplate> |
<telerik:RadTreeView ID="rtCats" Runat="server" Skin="Gray" OnNodeClick="rtCats_NodeClick"> |
<CollapseAnimation Duration="100" Type="OutQuint" /> |
<ExpandAnimation Duration="100" /> |
</telerik:RadTreeView> |
</ItemTemplate> |
</telerik:RadComboBox> |
In order to get the data from the treeview to the combo box, I wrote the following routine:
Protected Sub rtCats_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) |
Dim lstCats As RadComboBox |
lstCats = RadPanelBar1.Items(0).FindControl("lstCats") |
lstCats.SelectedValue = e.Node.Value |
lstCats.SelectedItem.Text = e.Node.Text |
lstCats.SelectedItem.ToolTip = e.Node.FullPath |
End Sub |
Unfortunately, it seems that every time I click on item in the tree, the entire page refreshes. It actually does a postback, but its as if there's no updatepanel. The entire page re-loads.
What am I doing wrong? Other RadCombo boxes on the same page that use the standard RadComboItem do not seem to have this problem. The button next to the control posts back correctly as well.
Any help is greatly appreciated!
Thanks,
Alex