Change z-index on clientside

2 posts, 0 answers
  1. benitolopez_sistemas
    benitolopez_sistemas avatar
    25 posts
    Member since:
    Jan 2007

    Posted 04 Mar 2010 Link to this post

    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.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 05 Mar 2010 Link to this post

    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.
Back to Top