RadWindow didn't popup in IE9 & FireFox & Chrome

4 posts, 0 answers
  1. AUK
    AUK avatar
    47 posts
    Member since:
    Oct 2004

    Posted 14 Nov 2013 Link to this post

    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!!!
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 15 Nov 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hugh
    Hugh avatar
    10 posts
    Member since:
    Nov 2014

    Posted 15 Nov 2014 in reply to Marin Bratanov Link to this post

    Hello there, was there ever a resolution to this issue?  I have the same problem in IE 10.

    thanks,
    Steve.
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 17 Nov 2014 Link to this post

    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.

     
Back to Top