I have a RibbonBar button that when click a RadWindowManager.RadConfirm window opens up. After the "Ok" button is
click the RadAjaxManager1_AjaxRequest in the code behind is not being fired. However, the javascript is being fired
and returns no errors
the HTML markup and javascript is setup as follows:<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="DailyReportsControl.ascx.vb" Inherits="FXWB.DailyReportsControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> </telerik:RadAjaxManager> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> //<![CDATA[ function alertCallBackFn(arg) { return false; } function confirmCallBackFn(arg) { var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>"); if (arg != null) { //If user confirms they want to clear all signatures, call server side method if (arg == true) { if (ajaxManager != null) { ajaxManager.ajaxRequest(1); return false; } } //If user cancels the clear all signatures, then simply return else if (arg == false) { if (ajaxManager != null) { return false; } } } } //]]> </script> </telerik:RadCodeBlock> <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> </telerik:RadWindowManager>
The code-behind loads up other controls dynamically on the page (there is another page identical to this one and the AjaxRequest is firing on that one).
The code-behind for the Request is as follows:
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest Select Case e.Argument Case "1" MyBase.OnDelete(ucFolderList.ListType, ucFolderList.ucFolderControl.objFolder.strFolderType, ucFolderList.SelectedItems) MyBase.OnDelete(ucSubfolders.ListType, ucSubfolders.ucFolderControl.objFolder.strFolderType, ucSubfolders.SelectedItems) Response.Redirect(Request.Url.ToString()) End Select End Sub
Why is the RadAjaxManager1_AjaxRequest not firing after the confirm button click?