Code in aspx:
This method won't stop whole page postback when you trigger the rtv_NodeClick event
There somebody said, should put the updatepanel inside ComboBox like follows
This method can stop the whole page postback, but as ajax method, it won't change the value of radcombox.
As we were told ms-help://telerik.aspnetajax.radcontrols.2009.Q1/telerik.aspnetajax.radajax.2009.Q1/3rdparty.html
<asp:UpdatePanel ID="upComboBox" runat="server"> |
<ContentTemplate> |
<telerik:RadComboBox ID="rcb" runat="server" SkinID="Larger" Height="200px"> |
<ItemTemplate> |
<telerik:RadTreeView ID="rtv" runat="server" OnNodeClick="rtv_NodeClick" |
CausesValidation="false"> |
</telerik:RadTreeView> |
</ItemTemplate> |
<Items> |
<telerik:RadComboBoxItem Selected="true" /> |
</Items> |
</telerik:RadComboBox> |
</ContentTemplate> |
</asp:UpdatePanel> |
Code in aspx.cs
protected void rtv_NodeClick(object sender, RadTreeNodeEventArgs e) |
{ |
rcb.Items[0].Value = e.Node.Value; |
rcb.Items[0].Text = e.Node.Text; |
} |
This method won't stop whole page postback when you trigger the rtv_NodeClick event
There somebody said, should put the updatepanel inside ComboBox like follows
<telerik:RadComboBox ID="rcbConsigned" runat="server" SkinID="Larger" Height="200px"> |
<ItemTemplate> |
<asp:UpdatePanel ID="up" runat="server"> |
<ContentTemplate> |
<telerik:RadTreeView ID="rtvSubcon" runat="server" OnNodeClick="rtvSubcon_NodeClick" |
CausesValidation="false"> |
</telerik:RadTreeView> |
</ContentTemplate> |
</asp:UpdatePanel> |
</ItemTemplate> |
<Items> |
<telerik:RadComboBoxItem Selected="true" /> |
</Items> |
</telerik:RadComboBox> |
As we were told ms-help://telerik.aspnetajax.radcontrols.2009.Q1/telerik.aspnetajax.radajax.2009.Q1/3rdparty.html
Controls that Are Not Compatible with RadAjaxManager Control
The following ASP.NET controls are not compatible with partial-page updates, and are therefore not supported as initiating or updated controls:
-
Web Parts controls. For more information, see ASP.NET Web Parts Controls.
-
FileUpload controls when they are used to upload files as part of an asynchronous postback.
-
GridView and DetailsView controls when their EnableSortingAndPagingCallbacks property is set to true. The default is false.
-
Login, PasswordRecovery, ChangePassword, and CreateUserWizard controls whose contents have not been converted to editable templates.
-
The Substitution control.