I create a RadAjaxPanel with some of inside controls.one of inside control is a nested radajax
with a TextBox and a button.both of radajaxpanel update mode are always(in code behind).
when i click on button in nested radajax parent radajax will be update an nested radajax will be hide!!Why?
I test this scenario with updatepanel and worked correct...
Markup:
Code Behind:
with a TextBox and a button.both of radajaxpanel update mode are always(in code behind).
when i click on button in nested radajax parent radajax will be update an nested radajax will be hide!!Why?
I test this scenario with updatepanel and worked correct...
Markup:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" onajaxsettingcreated="RadAjaxPanel1_AjaxSettingCreated1"> <asp:TextBox runat="server" ID="txt2" /> <asp:Button Text="but1" ID="but" runat="server" onclick="but_Click" /> <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" Height="200px" Width="300px" onajaxsettingcreated="RadAjaxPanel2_AjaxSettingCreated"> <asp:TextBox runat="server" ID="txt" /> <asp:Button Text="but2" ID="but2" runat="server" onclick="but2_Click" /> </telerik:RadAjaxPanel> </telerik:RadAjaxPanel>Code Behind:
protected void but_Click(object sender, EventArgs e) { txt.Text = "ok"; txt2.Text = "ok"; } protected void but2_Click(object sender, EventArgs e) { txt.Text = "ok"; txt2.Text = "ok"; } protected void RadAjaxPanel1_AjaxSettingCreated1(object sender, Telerik.Web.UI.AjaxSettingCreatedEventArgs e) { e.UpdatePanel.UpdateMode = UpdatePanelUpdateMode.Always; } protected void RadAjaxPanel2_AjaxSettingCreated(object sender, Telerik.Web.UI.AjaxSettingCreatedEventArgs e) { e.UpdatePanel.UpdateMode = UpdatePanelUpdateMode.Always; }