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

Inconsistent RadWindow behaviour

1 Answer 122 Views
Window
This is a migrated thread and some comments may be shown as answers.
Richard Freeman
Top achievements
Rank 1
Richard Freeman asked on 26 Apr 2011, 10:33 AM
I am getting some odd behaviour of RadWindow which might be related to me having just updated vs2010 to SP1 and also patching to the latest Telerik distribution.

The following code works fine on my production server:

function GetRadWindow()
{
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz az well)         
    return oWindow;
}


But when run in debug mode I get a javascript error:

"uncaught type error: Cannot read property 'radwindow' of undefined"

I've trawled the forums and have seen several threads that tie a similar-ish behaviour to mixing http/https pages in radwindows - however I am 100% http (no https anywhere).  I should probably add that I'm using the radwindow in a masterpage/content scenario.

Am scratching my head here - not a showstopper as the code works in production, but it means I can't debug it.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 28 Apr 2011, 11:32 AM
Hello Richard,

The only thing I can assume that might be causing the issue (apart from the http / https case) is that your pages are in different domains. If this is so, the problem is caused by browser security mechanism and this is not related to RadWindow but to general ASP.NET and JavaScript knowledge and cannot be workarounded (even if so, this will make the site very vulnerable to hacker attacks).

If this is not the case, it would be best to open a support ticket and to send us a sample project that reproduces the error so we can investigate further.

Best wishes,
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
Richard Freeman
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or