Window placement

2 posts, 0 answers
  1. Anders Mad.
    Anders Mad. avatar
    42 posts
    Member since:
    May 2006

    Posted 07 Feb 2008 Link to this post

    Problem: When a RadWindow is added to the document/form using the "open" method it is added as the last element. If any element above is floating relative the dragging and placement is obscure.

    Solution: Add the element as the first child (or maybe provide an option to do so?).

    Fix: I have fixed this by now doing this:
    // Override  
    Telerik.Web.UI.RadWindow.prototype._addWindowToDocument = function() {  
        var theForm = document.getElementById(this._formID);  
        if (!theForm)  
            theForm = document.forms[0];  
        theForm.insertBefore(this._popupElement, theForm.firstChild);  
    }; 
  2. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 12 Feb 2008 Link to this post

    Hello Anders,

    There are certain reasons because of which a new window is currently added as the last element on the page. However, in the scenario you described it is indeed better to be added as the first element. We will test your approach and if no side effect are discovered, we will integrate this change into the RadWindow code.

    Thank you for sharing this scenario with us.

    All the best,
    Tervel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top