In my application, I have a sequence where the following happens. The user clicks a button. A radconfirm message box containing a callback function executes which then potentially executes more code based on whether the user clicks OK or Cancel. If OK then more servier side code executes. If Cancel nothing more happens. This is all working fine with only one problem exists which I'm trying to remedy. The problem is I would like a "spinny" to work as the code executes since the code takes a long time to finish. To do this, I imagined I would put code that would ajaxify a panel containing an animated gif. For example(note, the Button is not shown):
<asp:Panel ID="PanelLoadPlace" runat="server" style="padding-bottom:5px;">
<asp:Label ID="LabelSpacerForLoadingPanel" runat="server" Width="100px" Height="20px" />
<telerik:RadAjaxLoadingPanel ID="panelLoading" runat="server" Style="margin-top: 0px;"
HorizontalAlign="center" IsSticky="false" Transparency="30" InitialDelayTime="100"
<asp:Image ID="ImageLoading" runat="server" ImageUrl="~/Images/loading.gif" BorderWidth="0px"
protected void Manager_AjaxRequest(object sender, AjaxRequestEventArgs e)
.GetCurrent(Page).AjaxSettings.AddAjaxSetting(Button, PanelLoadPlace, panelLoading);
However, this didn't work. I tried placing the above line AddAjaxSetting line immediately after the RadConfirm and that didn't work either. Any ideas?