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

[Solved] Radwindow open problem

3 Answers 200 Views
Window
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 10 May 2008, 07:48 AM
Hi,

I have a grid, radwindowmanager and radajax control on a page. I am upgrading from the 2007 to 2008 & have a radcodeblock around the script due to a radAjax call.

the problem is that I get an "error on page" javascript message on the status bar when I try and use the radopen command. I have another page that uses radopen with no problems it's just this one will not work.

The call is:

var

oWnd = radopen("AdminHowToDetails.aspx?id=-1","EditWindow");

and the manager is:

<

telerik:RadWindowManager 
            ID="RadWindowManager1" 
            
Height=600
            Width=700 
            runat="server" 
            Skin="Office2007" 
            DestroyOnClose=true 
            VisibleStatusbar=false >
<Windows>
            <telerik:RadWindow 
                ID="EditWindow" 
                Modal="true" 
                runat="server" 
                Title="Edit indow" />
</Windows>
</telerik:RadWindowManager>



Any ideas?

Regards

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 10 May 2008, 08:18 AM
Hi Roger,

The code snippet looks fine and should not be the reason for this problem. Since we need more information on your case, I would like to ask you to open a support ticket and to send us your project or a sample one where this problem can be reproduced. We will check it and get back to you right away.



Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Roger
Top achievements
Rank 1
answered on 12 May 2008, 06:51 AM
Hi Guys,

found the problem. I have a master page with a RadWindowManager and also the content page I am loading has a radWindowManager on it.

When radOpen is called it doesn't know which manager to use. I have also found that window definitions can get mixed up.

The solution is to create a wrapper radopen that uses a specific radwindowmanager like the following:

function radOpenWrapper(File,Window){
    var oManager =$find("<%=RadWindowManager1.ClientID%>");
    var oWnd = oManager.getWindowByName(Window);
    oWnd.setUrl(File);
    oWnd.show();
    return oWnd;
}

I have tested this scenario and not only does it select the correct RadWindowManager but also the correct window in the manager.

Regards
Roger
0
Roger
Top achievements
Rank 1
answered on 12 May 2008, 10:58 PM
Hi again,

looks like I was wrong with my initial fix.

While my method of opening a window by targeting a specific RadWindowManager works in selecting a particular window from multiple RadWindowManagers, that was not the initial problem where the windows did not opening.

I had a client event on a RadGrid that called a javascript function which did not exist: 

<

ClientEvents OnRowSelected = "TitleSelect" />....TitleSelect does not exist on the form

in version 2007 this works while in 2008 of RadGrid it locks up the javascript.

So be aware when upgrading.

Regards
Roger

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