Hi,
I have a page with a user control and rad ajax manager proxy as shown in the code.
The rad ajax manager is configured to update the whole panel.
my user control is like
User control consists of two combo boxes: one with a button in the footer. On the click of button in the footer i wish to update the second combo box.
It also has a button. On the button click i wish to update the whole asp panel of the content page. so i have created a event which updates the whole desired controls. All this works fine.
But when button in the footer of the combo box is clicked the page postbacks alternatively. ie On first click partial post back(ajaxified) and on the other click full post back (no ajaxification). this continues to happen alternately.
Please let me know how should i attain this, or where have i made the mistake.
I also copied the cs code here (though it contains no logic), if it can help you.
I have a page with a user control and rad ajax manager proxy as shown in the code.
The rad ajax manager is configured to update the whole panel.
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="Panel1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<div> |
<asp:Panel ID="Panel1" runat="server" Width="100%" Height="100%"> |
<uc1:WebUserControl ID="WebUserControl1" runat="server"/> |
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> |
</asp:Panel> |
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="100%" |
Width="100%"> |
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' |
style="border: 0px;" /> |
</telerik:RadAjaxLoadingPanel> |
</div> |
</form> |
my user control is like
<div> |
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="Button1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadComboBox2" LoadingPanelID="RadAjaxLoadingPanel1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManagerProxy> |
<div> |
<table> |
<tr> |
<td> |
<telerik:RadComboBox ID="RadComboBox1" runat="server"> |
<ItemTemplate> |
<asp:CheckBox ID="chkbxSalesRep" runat="server" EnableViewState="true" Text="abc" /> |
</ItemTemplate> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
<FooterTemplate> |
<table> |
<tr> |
<td> |
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /></td> |
</tr> |
</table> |
</FooterTemplate> |
</telerik:RadComboBox> |
</td> |
<td> |
<telerik:RadComboBox ID="RadComboBox2" runat="server"> |
<ItemTemplate> |
<asp:CheckBox ID="chkbxSalesRep" runat="server" EnableViewState="true" Text="abc" /> |
</ItemTemplate> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
<Items> |
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" Value="RadComboBoxItem1" /> |
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" Value="RadComboBoxItem2" /> |
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" Value="RadComboBoxItem3" /> |
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem4" Value="RadComboBoxItem4" /> |
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem5" Value="RadComboBoxItem5" /> |
<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem6" Value="RadComboBoxItem6" /> |
</Items> |
</telerik:RadComboBox> |
</td> |
</tr> |
<tr> |
<td colspan="2"><asp:Button ID="Button2" runat="server" Text="Button" OnClick="Button2_Click" /></td> |
</tr> |
</table> |
</div> |
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="100%" |
Width="100%"> |
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' |
style="border: 0px;" /> |
</telerik:RadAjaxLoadingPanel> |
</div> |
User control consists of two combo boxes: one with a button in the footer. On the click of button in the footer i wish to update the second combo box.
It also has a button. On the button click i wish to update the whole asp panel of the content page. so i have created a event which updates the whole desired controls. All this works fine.
But when button in the footer of the combo box is clicked the page postbacks alternatively. ie On first click partial post back(ajaxified) and on the other click full post back (no ajaxification). this continues to happen alternately.
Please let me know how should i attain this, or where have i made the mistake.
I also copied the cs code here (though it contains no logic), if it can help you.
// web user control |
public partial class WebUserControl : System.Web.UI.UserControl |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
} |
protected void Button1_Click(object sender, EventArgs e) |
{ |
} |
protected void Button2_Click(object sender, EventArgs e) |
{ |
} |
} |
// the page |
public partial class _Default : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
} |
} |