Hi,
No matter what I do I can not set the width of a menu item.
Here's a cut down version of the markup.
The menu item ends up with a load of white space to the right of the RadButtonList which means the menu item goes off the edge of the screen.
If I set EnableScreenBoundaryDetection="true" then because then menu item would go off the edge of the screen it moves it to the top, and moves it off the screen anyway!
I'm happy to leave EnableScreenBoundaryDetection="false" if I can set the width of the menu item.
The style is here:
No matter what I do I can not set the width of a menu item.
Here's a cut down version of the markup.
rad:RadMenu ID="RadMenu1" runat="server" Skin="Web20" OnClientItemOpen="OnClientItemOpenHandler" |
Width="100%" OnClientLoad="removeDelay" CausesValidation="false" EnableScreenBoundaryDetection="false"> |
<Items> |
<rad:RadMenuItem ID="RadMenuItem4" runat="server" Text="OPTIONS" Style="text-align: left;"> |
<Items> |
<rad:RadMenuItem ID="RadMenuItem5" runat="server" Text="Export"> |
<Items> |
<rad:RadMenuItem ID="RadMenuItem6" runat="server" Value="MenuItemExportOptions" CssClass="StyleToSetMaxWidth"> |
<ItemTemplate> |
<div id="ExportData" class="margin"> |
Please note exports will include managers<br /> |
(where appropriate) |
<asp:RadioButtonList ID="ExportExcelOptionsMenu" runat="server"> |
<asp:ListItem Text="As one file" Value="0" Selected="True"> |
</asp:ListItem> |
<asp:ListItem Text="As individual files" Value="1"> |
</asp:ListItem> |
</asp:RadioButtonList> |
<div style="text-align: right"> |
<asp:LinkButton ID="MenuExportButton" runat="server" CssClass="GoButton" Text="Go" |
OnClick="ExportButton_Click" OnClientClick=" return CheckSelectedRows()" /></div> |
</div> |
</ItemTemplate> |
</rad:RadMenuItem> |
</Items> |
</rad:RadMenuItem> |
</Item> |
</rad:RadMenu> |
The menu item ends up with a load of white space to the right of the RadButtonList which means the menu item goes off the edge of the screen.
If I set EnableScreenBoundaryDetection="true" then because then menu item would go off the edge of the screen it moves it to the top, and moves it off the screen anyway!
I'm happy to leave EnableScreenBoundaryDetection="false" if I can set the width of the menu item.
The style is here:
<style type="text/css"> |
.StyleToSetMaxWidth |
{ |
width: 250px !important; |
max-width: 250px !important; |
} |
</style> |