Unable to open rad window

2 posts, 0 answers
  1. Esther Nirmala
    Esther Nirmala avatar
    19 posts
    Member since:
    Apr 2010

    Posted 12 May 2011 Link to this post

    Hi ,

        I have used rad window in my pjt.  it was working. when i move the rad window manager inside rad ajax panel it stopped working and throwing error like,"Cannot called after dispose"..

    Here is the code

           function OpenRadWindowAddRecurrencePopup(isConflict, startDate, endDate, startTime, EndTime, SessionID, recordid, LOCATIONname, roomNo) {
                    var Url = "./AddRecurrence.aspx?ISCONFLICT=" + isConflict + "&STARTDATE=" + startDate + "&ENDDATE=" + endDate + "&STARTTIME=" + startTime + "&ENDTIME=" + EndTime + "&SESSIONID=" + SessionID + "&CODE=" + recordid + "&LOCATIONID=" + LOCATIONname + "&roomNo=" + roomNo;
                    var oWnd = radopen(Url, "radWindowAddRecurrencePopup");
                    return false;
    // some controls here
     <telerik:RadWindowManager ID="RadWindowManager2" runat="server" MinWidth="500" ReloadOnShow="false">
                    <telerik:RadWindow ID="radWindowAccountCodePopup" OnClientClose="CallBackFunctionAccountCode"
                        Behavior="Close" VisibleTitlebar="false" Modal="true" Width="650px" runat="server"
                        Height="530px" NavigateUrl="~\Admin\AccountCodePopup.aspx" VisibleStatusbar="false">
                    <telerik:RadWindow ID="radWindowAddRecurrencePopup" Modal="true" Width="750px" runat="server"
                        Height="650px" OnClientClose="CallBackFunctionRecurrence" InitialBehaviors="None">
                    <telerik:RadWindow ID="radWindowViewEditRecurremcePopup" OnClientClose="CallBackFunctionRecurrence"
                        Behaviors="None" VisibleTitlebar="false" Modal="true" Width="700px" runat="server"
                        Height="450px" VisibleStatusbar="false">
                    <telerik:RadWindow ID="radWindowLocationPopup" OnClientClose="CallBackFunctionService"
                        OpenerElementID="" OffsetElementID="" Behavior="Close" VisibleTitlebar="false"
                        Modal="true" Width="578px" runat="server" Height="450px" NavigateUrl="~\Admin\LocationPopup.aspx"

  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 13 May 2011 Link to this post

    Hello Esther,

    I am not sure about the rest of the logic on that page, but generally speaking, if you don't show RadWindow from the server (by setting VisibleOnPageLoad=true), you should not ajaxify it. I see in your code that you are opening it on the client with JavaScript, so there is no need to ajaxify the control.

    Georgi Tunev
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top