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

getRadWindow() return null

1 Answer 108 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 01 Apr 2009, 04:48 PM
I am using RadEditor for MOSS to launch a dialog window:

 

var dialogInput=new Object();

dialogInput.editor = editor;

 

var callback=function(dialogOutput)

{

    MyCallback(dialogOutput);

};

 

var dialogUrl= "/mylink.aspx";

 

editor.ShowDialog( dialogUrl, dialogInput,400,200,callback,{cmdName : editor.Localization[

"MyCommand"]}, "My Title");

}

For some reason, the getRadWindow() function in /mylink.aspx always return null:

 

 

 

function getRadWindow()

{

 

    if (window.radWindow)

    {

 

        return window.radWindow;

    }

 


    if
(window.frameElement && window.frameElement.radWindow)

 

 

    {

 

        return window.frameElement.radWindow;

    }

 

    
    return
null
;

}

I can't think of any reason why it would not return radWindow, can you help me out?

Thanks.

 

 

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 03 Apr 2009, 08:06 AM
Hi Joe,

In order to reproduce the problem on our side, we will need some additional information.
Could you please open a support ticket and provide us with the content of mylink.aspx? Also we need to know exactly when are you calling the getRadWindow method?

Thank you.

Sincerely yours,
Stanimir
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
Joe
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or