locked
Telerik.Web.UI.WindowManager.Manager is undefined so RadConfirm is not working RRS feed

  • Question

  • User2053022673 posted

    Hi Team, 

    I have added RadConfirm() in the ASCX code behind on radbutton click page. But it's failing  in runtime throwing the runtime script error "JavaScript runtime error: Unable to get property 'radconfirm' of undefined or null reference".

    window.radconfirm=function(h,a,g,d,b,f,c){var e=GetRadWindowManager();

    return e.radconfirm(h,a,g,d,b,f,c);

    };

    here 'e' is undefined. 

    My ascx code behind 

     else if (projectDropdown == ApplicationConstants.WF_CURRENCY_CONVERSION_CUBE_DISPLAY)
                            {
                                string Tag = string.Empty;
                                string confirmMsg = string.Empty;
                                List<string> factTag = presenter.GetFactTagAssociated(projectId, DsId);
                                if (factTag.Count > 0)
                                {
                                    confirmMsg += "The listed facts will be impacted. <br/>";
                                    foreach (string tag in factTag)
                                    {
                                        Tag += tag + ",";
                                    }
                                    confirmMsg += Tag;
                                  
                                    confirmMsg += " <br/> Do you want to continue?";
                                }
                           
                               RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("radconfirm('" + confirmMsg + "', callbackFunctionPerformStartProcessValidation , 300 ,100 , null ,'" + ApplicationConstants.CLOSE + "' )");

                                return;
                            }

     

    ascx Script block

      function callbackFunctionPerformStartProcessValidation(arg) {
                    if (arg) {
                        debugger;
                        var argument = "Start Process";
                        $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(argument);
                    }
                }

    I have added telerik:RadWindowManager above the radscript block and below the script block too. but it's not working.

    Please let me know how to progress. It's blocking me.

    Thursday, August 17, 2017 8:45 AM

All replies