Editor contents disappear when RadWindow opens over it

4 posts, 0 answers
  1. George
    George avatar
    73 posts
    Member since:
    Oct 2014

    Posted 05 May Link to this post

    I have a page with a RadEditor on it.  I have a test button that posts causing a model RadWindow to open over the RadEditor. When the page refreshes, the editor gets its text but then disappears when the RadWindow opens over it. The RadEditor text reappears when the RadWindow is closed.

    The test window is open from a javascript function that is initiated by aspx code.

    Page.ClientScript.RegisterStartupScript(this.GetType(), "OpenTest", "<script type='text/javascript'>Sys.Application.add_load(OpenTestWindow);</script>");

    OpenTestWindow is

    function OpenTestWindow() {
        Sys.Application.remove_load(OpenTestWindow);

        setTimeout(function () {

            var browserWidth = $telerik.$(window).width();
            var browserHeight = $telerik.$(window).height();

            var oWnd = GetRadWindow();
            console.log("oWnd " + oWnd);
            oWnd.Visible = true;
            oWnd.show();
            oWnd.setSize(Math.ceil(browserWidth * 80 / 100), Math.ceil(browserHeight * 80 / 100));
            oWnd.center();

        }, 300);
    }
        function GetRadWindow()
        {
            var manager = $find("<%= RadWindowManagerMessages.ClientID %>");
            return manager.open(null, "TestWindow");
        }

    I need to be able to look at the editor contents while the RadWindow is open.

    This is a very strange problem

     

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 10 May Link to this post

    Hi George,

    I created a sample page to test that, but I was unable to encounter issues with RadEditor content. It is shown behind the modal overlay. 

    You can find the test page attached to examine it and see if I am missing something. 

    Regards,
    Ianko
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. George
    George avatar
    73 posts
    Member since:
    Oct 2014

    Posted 10 May Link to this post

    I updated to a new Telerik AJAX ASP.NET build and the problem is mostly fixed.  There is a strange thing where the contents of the RadEditor disappear if you move the model window (actually click on the title bar). Happens on all three of my RadWindows.

    My configuration uses 3 RadWindows so the need to e grouped in a RadWindowManager which could be a difference.

  5. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 10 May Link to this post

    Hello George,

    When RadWindow is being dragged/moved it is expected the content area to hide itself. This is a prevention of a browser behavior. Typically, when dragging DOM elements (like RadWindow) browser enables end user to drop this DOM element in content editable areas (like the content area of RadEditor).

    Therefore, to overcome this unwanted behavior and prevent outside DOM elements to get into the HTML of the content area, when RadWindow is being moved around, the iframe element hides itself.  

    I have tested with RadWindowManager, but still I was unable to encounter the described situation. Apart the one related to moving the RadWindow. 

    I suggest you to try and isolate the case in the sent example and attach it to your message in order to examine the exact scenario that is on your end. 

    Regards,
    Ianko
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top