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

Rad menu width in percentage

1 Answer 144 Views
Menu
This is a migrated thread and some comments may be shown as answers.
anup
Top achievements
Rank 1
anup asked on 31 Aug 2009, 11:29 AM
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?
 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Oct 2009, 12:53 PM
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.
Tags
Menu
Asked by
anup
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or