3 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 09 Mar 2009, 07:49 AM
Hi Ritzie,
I hope using Separator for the RadMenu will help you in achieving this. Also add the CSS given below to change the color of separator.
CSS:
<style type="text/css"> |
.RadMenu_SkinName .rmRootGroup .rmSeparator, |
.RadMenu_SkinName .rmGroup .rmSeparator |
{ |
background-color: White !important; |
} |
</style> |
ASPX:
<telerik:RadMenu ID="RadMenu1" Runat="server"> |
<Items> |
<telerik:RadMenuItem runat="server" Text="Root RadMenuItem1"> |
<Items> |
<telerik:RadMenuItem IsSeparator="true" ></telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"> |
</telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"> |
</telerik:RadMenuItem> |
</Items> |
</telerik:RadMenuItem> |
</Items> |
</telerik:RadMenu> |
Thanks,
Princy.
0
Ritzie
Top achievements
Rank 1
answered on 09 Mar 2009, 08:59 AM
Hello Princy,
The separator is coming on the vertical List i.e before the items but I want it after each node on the root group.
I will show u an example Home| Initial Assessment| and so on.
And the separator must be of white color.
Thankx in advance
Ritzie
0
Accepted
Princy
Top achievements
Rank 2
answered on 09 Mar 2009, 09:53 AM
Hi Ritzie,
Place the seperator according to your need, to get the result. Add the seperator between the main RadMenuItems. Change the SkinName "Default" to the skinname that you are using (in CSS), in the case of using any skin for RadMenu.
ASPX:
CSS:
Thanks,
Princy.
Place the seperator according to your need, to get the result. Add the seperator between the main RadMenuItems. Change the SkinName "Default" to the skinname that you are using (in CSS), in the case of using any skin for RadMenu.
ASPX:
<telerik:radmenu id="RadMenu1" runat="server"> |
<Items> |
<telerik:RadMenuItem runat="server" Text="File"> |
<Items> |
<telerik:RadMenuItem runat="server" Text="New"></telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="Open"></telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="Close"></telerik:RadMenuItem> |
</Items> |
</telerik:RadMenuItem> |
<telerik:RadMenuItem IsSeparator="true"></telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="Edit"> |
<Items> |
<telerik:RadMenuItem runat="server" Text="Copy"></telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="Cut"></telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="Paste"></telerik:RadMenuItem> |
</Items> |
</telerik:RadMenuItem> |
<telerik:RadMenuItem IsSeparator="true"></telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="Settings"> |
<Items> |
<telerik:RadMenuItem runat="server" Text="Basic"></telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="Advanced"></telerik:RadMenuItem> |
</Items> |
</telerik:RadMenuItem> |
</Items> |
</telerik:radmenu> |
CSS:
<style type="text/css"> |
.RadMenu_Default .rmRootGroup .rmSeparator, |
.RadMenu_Default .rmGroup .rmSeparator |
{ |
background-color: White !important; |
} |
</style> |
Thanks,
Princy.