Problem with dynamic menu

3 posts, 0 answers
  1. Farshad heidary
    Farshad heidary avatar
    53 posts
    Member since:
    Oct 2009

    Posted 15 May 2010 Link to this post

    i have a DIV that cntain a telerik  menu.
    .menuBody{ 
        width:159px; 
        padding:8px; 
        overflow:hidden; 
        background:#f3f3f3; 
        border:1px solid #afafaf; 
        border-top-width:0px; 
        border-bottom-width:0px; 
        direction:ltr; 
        text-align:justify; 
        line-height:20px; 
    }
    but when dynamic menu(chilid menu) is open. dynamic menu goes under DIV.
    this is pic of tthis event.
    http://www1.upic.ir/images/ebvaet2tcehwx71hsg7.jpg
    how i can fix it?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 17 May 2010 Link to this post

    Helo Farshad,

    Your code works fine when I tried on my end. I am using RadControls version 2010, 1, 309. Hee is the code.

    CSS:
     
        <style type="text/css">   
            .menuBody   
            {   
                width159px;   
                padding8px;   
                overflowhidden;   
                background#f3f3f3;   
                border1px solid #afafaf;   
                border-top-width0px;   
                border-bottom-width0px;   
                directionltr;   
                text-alignjustify;   
                line-height20px;   
            }   
        </style>  


    ASPX:
        <div id="menuDiv" class="menuBody">   
            <telerik:RadMenu ID="RadMenu1" runat="server" Flow="Vertical" Skin="Simple" Style="top: 0px;   
                left: 0px">   
                <Items>   
                    <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1">   
                        <Items>   
                            <telerik:RadMenuItem runat="server" Text="RadMenuItem1">   
                            </telerik:RadMenuItem>   
                        </Items>   
                    </telerik:RadMenuItem>   
                    <telerik:RadMenuItem runat="server" Text="Root RadMenuItem2">   
                    </telerik:RadMenuItem>   
                </Items>   
            </telerik:RadMenu>   
        </div>  

    C#:
     
        protected void Page_Load(object sender, EventArgs e)   
        {   
            RadMenuItem item1 = new RadMenuItem("DynamicItem");   
            RadMenu1.Items[0].Items.Add(item1);   
        }  
     

    Could you try setting the z-index property of RadMenu to higher value and see whether it helps?

    -Shinu.







  3. Farshad heidary
    Farshad heidary avatar
    53 posts
    Member since:
    Oct 2009

    Posted 17 May 2010 Link to this post

    Use this code in FireFox please
    every thing is okey in IE or chrume
Back to Top