RadWindow's z-index

2 posts, 0 answers
  1. JP
    JP avatar
    122 posts
    Member since:
    Aug 2011

    Posted 29 Nov 2011 Link to this post

    Hi,

    how I can I set the z-Index of the RadWindow? It starts at 3000 and increases when moving the window.
    I need to have it starting at about 300.
    How can I achieve that?

    In the RadWindow's OnClientShowMethod I do this:
    var id = sender.get_id();
    var windowDiv = $(".RadWindow[id$='" + id + "']");
    windowDiv.css('z-index', 500);
    But the z-index starts at 3000 anyway.

    How can I set the z-index by myself?

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Nov 2011 Link to this post

    Hello,

    You can set the z-index with any of the following methods.
    aspx:
    <telerik:RadWindow ID="RadWindow1" runat="server" Style="z-index: 500">
    </telerik:RadWindow>

    JS:
    var window = $find('<%= RadWindow1.ClientID %>');
    window.set_cssClass("windowclass");

    CSS:
    .windowclass
     {
    z-index:500!important;
     }

    -Shinu.
Back to Top