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

Window placement

1 Answer 68 Views
Window
This is a migrated thread and some comments may be shown as answers.
Anders Mad.
Top achievements
Rank 2
Anders Mad. asked on 07 Feb 2008, 12:49 PM
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);  
}; 

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 12 Feb 2008, 07:22 AM
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
Tags
Window
Asked by
Anders Mad.
Top achievements
Rank 2
Answers by
Tervel
Telerik team
Share this question
or