Rad menu width in percentage

2 posts, 0 answers
  1. anup
    anup avatar
    2 posts
    Member since:
    Mar 2009

    Posted 31 Aug 2009 Link to this post

    Hi All,

    I  am using rad menu in my web site (visual studio 2008).
    How to set width of menu's in percentages at present i am using pixels instead of percentage?
     
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Oct 2009 Link to this post

    Hi Anup,

    You can set the RadMenu width in percentage as shown below.

    ASPX:
     
    <div style="width: 600px; height: 500px; border-color: Red; border-style: solid;"
        <telerik:RadMenu ID="RadMenu1" runat="server" Width="100%"
            <Items> 
             . . . 
            </Items> 
        </telerik:RadMenu> 
    </div> 
    Note: When we set the RadMenu width in percentage, it will take the width according to container's width.

    If you want tot set thewidth in percentage from code behind, then try the following code snippet;
             RadMenu1.Width = Unit.Percentage(100);

    -Shinu.
Back to Top