I have a page that is a radwindow, but in the code, I have 2 panels. Panel 1 shows up on page load, and depending on the selection, it hides Panel1 and shows Panel2. and from Panel2, the selection needs to close the window and return the result back to parent page.
It works fine except for the loadingpanel. I need a loader to show when it changes from Panel1 to Panel2 and when Panel2 button is closed. But as soon as I put in a Ajaxmanager and the loadingpanel, it wont close the window on uxSelectMarketType button click.
HTML Code
uxSelectMarketType_OnClick does... and it does run the code RedirectToAddCustomer() but just doesnt call RadWindow.Close().
It works fine except for the loadingpanel. I need a loader to show when it changes from Panel1 to Panel2 and when Panel2 button is closed. But as soon as I put in a Ajaxmanager and the loadingpanel, it wont close the window on uxSelectMarketType button click.
HTML Code
<script type="text/javascript"> |
function RedirectToAddCustomer() { |
GetRadWindow().BrowserWindow.RedirectToAddCustomer(); |
} |
function Close() { |
GetRadWindow().Close(); |
} |
</script> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="uxContinueOrder"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="uxAllPanel" LoadingPanelID="RadAjaxLoadingPanel1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="uxSelectMarketType"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="uxAllPanel" LoadingPanelID="RadAjaxLoadingPanel1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista" |
/> |
<div> |
<asp:ImageButton ID="uxCancelNewOrder" runat="server" ImageUrl="~/images/closepopup.gif" |
CssClass="FR" ToolTip="Cancel" OnClick="uxClose_Click" /> |
<asp:Panel ID="uxAllPanel" runat="server"> |
<asp:Panel ID="uxOrderTypePanel" runat="server"> |
<h2> |
Select Order Type</h2> |
<br /> |
<asp:RadioButtonList ID="uxOrderTypes" runat="server" CssClass="Table1" Width="100%"> |
</asp:RadioButtonList> |
<br /> |
<asp:Button ID="uxContinueOrder" runat="server" OnClick="SelectOrderTypes_Click" |
Text="Continue" CssClass="FR Button"> |
</asp:Button> |
</asp:Panel> |
<asp:Panel ID="uxMarketTypePanel" runat="server" Visible="false"> |
<h2> |
Select Market Type</h2> |
<br /> |
<asp:RadioButtonList ID="uxMarketType" runat="server" CssClass="Table1" Width="100%"> |
</asp:RadioButtonList> |
<br /> |
<asp:Button ID="uxSelectMarketType" runat="server" OnClick="uxSelectMarketType_OnClick" |
Text="Submit" CssClass="FR Button"> |
</asp:Button> |
</asp:Panel> |
</asp:Panel> |
</div> |
uxSelectMarketType_OnClick does... and it does run the code RedirectToAddCustomer() but just doesnt call RadWindow.Close().
ClientScript.RegisterStartupScript(Page.GetType(), "myKey", "RedirectToAddCustomer();", true); |