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

Modal Z-Index

4 Answers 62 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Terry Burns-Dyson
Top achievements
Rank 1
Terry Burns-Dyson asked on 25 Jan 2011, 07:00 PM
I've downloaded and installed the latest SP and am pleased that you can now open a modal window from a modal window, however, is there any property or method to allow us to specify the z-index or parent window? 

The issue I'm seeing is;

 - Modal Window 1 opens, overlay is applied.
 - Modal Window 1 opens Modal Window 2, overlay appears to be applied (there's a flash on the screen)
 - The window behind modal window 2 is still interactive and doesn't have an overaly on it. (making window 2 not modal)

I'm assuming this has something to do with the modal overlay being applied at one z-index, the windows being put on another. 

4 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 26 Jan 2011, 09:47 AM
Hello Terry,

 
In order to achieve your goal you can use HtmlAttributes method of the parent window and set required z-index.

Other option is to wire onLoad event of the child window and set bigger z-index. Please note that if both windows are modal they use one overlay div. Hence when open second window you will need to change z-index of the overlay too.

For your convenience I have attached the modified test project which you have send to us in your previous message.

All the best,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Terry Burns-Dyson
Top achievements
Rank 1
answered on 26 Jan 2011, 04:20 PM
Thank-you for the assistance, that did the trick. 
0
tom
Top achievements
Rank 1
answered on 30 Jan 2012, 03:20 PM
I think this should be accounted for in the telerik Open javascript, you could check for other t-window and if they are visible reduce their z-index.

I also do not think it is sensible for Telerik to default window z-index 
2147483649. This makes it very awkward to show subsequent popups, perhaps you could reveal this as a c# api property (not just attributes which gets overwritten)

Tom.


 


0
Dimo
Telerik team
answered on 30 Jan 2012, 03:56 PM
Hi Tom,

This is an old thread and now the issue with multiple Windows has been addressed. Currently if you open a Window, it will be displayed on top of all others. Also, if you click on a Window's titlebar, it will pop on top of all others. The modal background has its z-index changed accordingly, so that only one Window is above it.

Regards,
Dimo
the Telerik team
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Window
Asked by
Terry Burns-Dyson
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Terry Burns-Dyson
Top achievements
Rank 1
tom
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or