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

Control z-index of send mail dialog

3 Answers 51 Views
SocialShare
This is a migrated thread and some comments may be shown as answers.
p p
Top achievements
Rank 1
p p asked on 24 Aug 2012, 06:12 AM
hello!

There is a way to control z-index of dialog opened by send mail button?
My menu it's displayed over this dialog.
Any idea?

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 24 Aug 2012, 07:10 AM
Hello,

Try overriding the default CSS as follows.

CSS:
<style type="text/css">
     .RadMenu
        {
            z-index: 0 !important;
        }
</style>

Hope this helps.

Regards,
Princy.
0
p p
Top achievements
Rank 1
answered on 24 Aug 2012, 07:36 AM
Thanks!
0
Marin Bratanov
Telerik team
answered on 24 Aug 2012, 02:26 PM
Hi guys,

I would suggest that you set the z-index of the RadWIndows the RadSocialShare uses to a higher value, because setting the z-index of the RadMenu to 0 is likely to break something else. You can use the following code to achieve this:
if (!IsPostBack)
{
    (rss1.FindControl(rss1.ID + "_emailPopup") as RadWindow).Style.Add(HtmlTextWriterStyle.ZIndex, "12345");
    (rss1.FindControl(rss1.ID + "_compactPopup") as RadWindow).Style.Add(HtmlTextWriterStyle.ZIndex, "12345");
}

where rss1 is the ID of the RadSocialShare.

Greetings,
Marin Bratanov
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
SocialShare
Asked by
p p
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
p p
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or