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

Two Modal RadWindows overlap each other (no javascript)

3 Answers 51 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mercede
Top achievements
Rank 2
Mercede asked on 07 Oct 2013, 02:16 PM
Consider the following design: 

  Page "X"  has many user controls
user control UA has a modal rad window displayed when Show() is called
user control UB has a modal rad window displayed when Show() is called

user control UX & UY can request X to display the modal rad window of UA. 

Steps: (4 screen shots are attached)
  1. Page X is displayed.
  2. User is editing the data on UX. UX requests X to display the UI of UA modal rad window.  (Step 1: Add button
  3. UA is displayed i.e. the modal rad Window with controls is displayed. (Step 2: UA is displayed correctly)
  4. While user is editing the data in UA, UB is invoked by the actions. But the UB which should have been on top of UA is not displayed correctly. even though the functionality is fine. (Step 3: UB is displayed but incorrectly)
  5. When the title bar of UB is clicked the UI of UB is displayed correctly. (Step 4: after clicking the title bar of UB, prob solved)

Question: 
 How to make the modal rad window of UB displayed correctly?

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 08 Oct 2013, 10:05 AM
Hello,

 If you are showing them simultaneously you need to set an active one with a small timeout (see the setActive(true) method from the client-side API of the cotnrol). This can happen if you are using the VIsibleOnPageLoad property. I advise that you use a script as shown in this sticky thread: http://www.telerik.com/community/forums/aspnet-ajax/window/opening-radwindow-from-the-server.aspx.
If you still experience this behavior, add a small timeout when showing the second one, even 0ms should suffice.

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.
0
Mercede
Top achievements
Rank 2
answered on 09 Oct 2013, 06:25 PM
Doesn't work at all. same behaviour
0
Marin Bratanov
Telerik team
answered on 10 Oct 2013, 01:56 PM
Hello Mercede,

If you share the code that is proving problematic we would be able to actually examine the problem and try to help you.
This blog post can help you when isolating the problem to a minimal amount of code that you can post here.

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.
Tags
Window
Asked by
Mercede
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Mercede
Top achievements
Rank 2
Share this question
or