Control z-index of send mail dialog

4 posts, 1 answers
  1. p p
    p p avatar
    12 posts
    Member since:
    May 2010

    Posted 24 Aug 2012 Link to this post

    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?

  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Aug 2012 Link to this post

    Hello,

    Try overriding the default CSS as follows.

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

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. p p
    p p avatar
    12 posts
    Member since:
    May 2010

    Posted 24 Aug 2012 Link to this post

    Thanks!
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 24 Aug 2012 Link to this post

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