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

Change z-index on clientside

1 Answer 132 Views
Menu
This is a migrated thread and some comments may be shown as answers.
benitolopez_sistemas
Top achievements
Rank 1
benitolopez_sistemas asked on 05 Mar 2010, 05:52 AM
I have a menu with z-index=7000, and a radwindowmanager with z-index=3000.

I need my menu be always on top of the windows, as the most .exe app.

But with a modal window I need this type of window be on top of everything, including the menu.

I create clientside via javascript the radwindows. How can I assign a z-index to my modal windows can be in top of everything, of course on top of other modal windows(previous ones), and the normal windows have their normal z-index under my radmenu?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Mar 2010, 11:18 AM
Hello Benitolopez,

Use the set_stylezindex() method to set higher the z-index value for the modal window when it is opening from client side.

JavaScript:
 
<script type="text/javascript"
    function openModal() { 
        var oWnd = window.radopen('http://www.telerik.com'''); 
        oWnd.set_stylezindex(8000); 
        oWnd.set_modal(true); 
    } 
</script> 

Thanks,
Princy.
Tags
Menu
Asked by
benitolopez_sistemas
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or