locked
Telerik Radconfirm not firing RRS feed

  • Question

  • User-1355356054 posted

    I want to be able to simply redirect to another page providing the value coming back from the radconfirm is a "Yes". However, when the server side script executes, the page just hangs. What am I missing?

    I have the following code in a server side button click event:
    <code>
    RadAjaxManager1.ResponseScripts.Add("radconfirm('No more EDLogs exist for the remaining Chart files. Do you want to be redirected to the page where you can enter more EDLogs?', confirmCallBackEDLogFn);"); 
    </code>

    I have the following code in my html:
    <code>

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>

        <script type="text/javascript">
            function confirmCallBackChartFn(arg)
                {
                    if(arg == "Yes")
                        {
                           window.location.href = "../scan/viewchart.aspx"; // Set the url to redirect
                        }
                }
               
            function confirmCallBackEDLogFn(arg)
                {
                    if(arg == "Yes")
                        {
                           window.location.href = "../scan/viewchart.aspx"; // Set the url to redirect
                        }
                }
        </script>

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
            <AjaxSettings>
                 <telerik:AjaxSetting AjaxControlID="chkBulk">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="chkBulk" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadGridEDLogFiles">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGridEDLogFiles" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="chkEDLog">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="chkEDLog" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxLoadingPanel>
    </code>

    Tuesday, June 8, 2010 4:08 PM

All replies