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

RadWindow's z-index

1 Answer 240 Views
Window
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 29 Nov 2011, 11:02 AM
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?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Nov 2011, 11:41 AM
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.
Tags
Window
Asked by
JP
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or