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

RadWindow didn't popup in IE9 & FireFox & Chrome

3 Answers 64 Views
Window
This is a migrated thread and some comments may be shown as answers.
AUK
Top achievements
Rank 1
AUK asked on 14 Nov 2013, 04:26 PM
Hello, I am using VS.net 2010, .Net 4, telerik version 2013.2.611.40, and I am having trouble to open up RadWindow in FF, Chrome and even IE9 (IE8 is working), during debugging, related code is in below:

parent page (I think 'var oWnd = radopen("Categories.aspx""RadWindow1");' didn't work as it didn't popup the rad window (Firefox & Chrome))):
function openWin() {
        var oWnd = radopen("Categories.aspx", "RadWindow1");
    }
 
    function OnClientClose(oWnd, args) {
        //get the transferred arguments
        var arg = args.get_argument();
        if (arg) {
            //var cityName = arg.cityName;
            var selCategory = arg.selCategory;
            var selCategoryId = arg.selCategoryId;
            //$get("order").innerHTML = "You chose to fly to  on <strong>" + seldate + "</strong>";
            document.getElementById("<%=selectCategory.ClientID%>").value = selCategory;
            document.getElementById("<%=selectCategoryId.ClientID%>").value = selCategoryId;
        }
    }


rad window page (I think line 'oWnd.close(oArg);' didn't work as it didn't close rad window in IE9 (in FireFox & Chrome radwindow didn't even popup) ):

function returnToParentDC(sId, sectionTitle) {
                  //create the argument that will be returned to the parent page
                  var oArg = new Object();
 
                  oArg.selCategory = sectionTitle;
 
                  oArg.selCategoryId = sId;
 
                  //get a reference to the current RadWindow
                  var oWnd = GetRadWindow();
 
                  //Close the RadWindow and send the argument to the parent page
                  if (oArg.selCategory && oArg.selCategoryId) {
                      alert("test before closing"); //This line is actually executed
                      oWnd.close(oArg); 
                  }
                  else {
                      alert("Please fill both fields");
                  }
              }


Many thanks!!!

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 15 Nov 2013, 09:50 AM
Hi,

I am not aware of reasons for such behavior and these code snippets seem fine.
I am adding here a slightly modified version of the GetRadWindow() method that takes care of getting the reference from inside the content pages for you to try:
function GetRadWindow()
{
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement && window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
}

If this does not help I would advise that you open a support ticket and send us a small sample we can run and observe the problem.

In the meantime you can test whether any plugins/add-ons cause the problem with the browser (i.e, disable them all, try a different machine, you could even reinstall a browser or reset IE's settings).

Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Hugh
Top achievements
Rank 1
answered on 15 Nov 2014, 08:05 PM
Hello there, was there ever a resolution to this issue?  I have the same problem in IE 10.

thanks,
Steve.
0
Marin Bratanov
Telerik team
answered on 17 Nov 2014, 04:49 PM

Hello Steve,

If the suggestions I offered in your other thread on the matter (http://www.telerik.com/community/forums/window-radwindow-undefined) do not help, I advise opening a ticket and sending us a sample we can see the issue in so we can debug it.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Window
Asked by
AUK
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Hugh
Top achievements
Rank 1
Share this question
or