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

[Solved] Can't set window to active

1 Answer 127 Views
Window
This is a migrated thread and some comments may be shown as answers.
Loy Chan
Top achievements
Rank 1
Loy Chan asked on 10 Mar 2008, 03:25 PM
I have a webpage with a RadGrid which uses a modal RadWindow (let's call it Window1) as the details edit page. On that edit page, there's a button that will popup another modal RadWindow (let's call it Window2) to populate an item on Window1.

The problem is that Window2 appears behind Window 1 and I have to click on Window2 to bring it to the foreground.

I tried to set Window2 to active prior to calling show() but that had no effect. As well, I thought that since Window2 was modal, I would not be able to select Window1 (which is what I wanted). But since Window1 is also modal, I wasn't sure what to expect.

My setup has both Window1 and Window2 defined on the page with the RadGrid. Window2 is invoked with the following code:

    var oManager = GetRadWindow().get_WindowManager();  
   
    var oWnd = oManager.GetWindowByName('Window2');  
    oWnd.setUrl('Common/EmployeePicker.aspx?employeeType=Manager');    
    oWnd.setActive(true);      
    oWnd.show(); 

Any help would be greatly appreciated.

Thanks

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Mar 2008, 02:26 PM
Hello Loy Chan,

I am not quite sure about your exact setup but I suggest to try the following:
  1. call the setActive() method after showing the RadWindow
  2. if this doesn't help, call it with a small timeout and see if this helps.
If you still experience problems, it will be best to send us a sample project in a support ticket (you cannot attach files in the forum) and we will check it right away.



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Loy Chan
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or