This is a migrated thread and some comments may be shown as answers.

Unable to open rad window

1 Answer 48 Views
Window
This is a migrated thread and some comments may be shown as answers.
Esther Nirmala
Top achievements
Rank 1
Esther Nirmala asked on 12 May 2011, 02:40 PM
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");
                //oWnd.SetUrl(oWnd.GetUrl());
                return false;
            }
  
    <telerik:RadAjaxPanel>
// some controls here
 <telerik:RadWindowManager ID="RadWindowManager2" runat="server" MinWidth="500" ReloadOnShow="false">
            <Windows>
                <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>
                <telerik:RadWindow ID="radWindowAddRecurrencePopup" Modal="true" Width="750px" runat="server"
                    Height="650px" OnClientClose="CallBackFunctionRecurrence" InitialBehaviors="None">
                    <%--OnClientClose="CallBackFunctionRecurrence"--%>
                </telerik:RadWindow>
                <telerik:RadWindow ID="radWindowViewEditRecurremcePopup" OnClientClose="CallBackFunctionRecurrence"
                    Behaviors="None" VisibleTitlebar="false" Modal="true" Width="700px" runat="server"
                    Height="450px" VisibleStatusbar="false">
                </telerik:RadWindow>
                <telerik:RadWindow ID="radWindowLocationPopup" OnClientClose="CallBackFunctionService"
                    OpenerElementID="" OffsetElementID="" Behavior="Close" VisibleTitlebar="false"
                    Modal="true" Width="578px" runat="server" Height="450px" NavigateUrl="~\Admin\LocationPopup.aspx"
                    VisibleStatusbar="false">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </telerik:RadAjaxPanel>


thx
esther

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 13 May 2011, 12:15 PM
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.


Greetings,
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.

Tags
Window
Asked by
Esther Nirmala
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or