Hi,
How can I implement two different css class for
I don't want to set it from code behind. Is there any way to set it from aspx page itself. Something like, SelectedItemCssClass="ItemSelected" and ItemCssClass="MenuItem" etc.
Also, I want to remove border of menu control. How can I do this? I tried " BorderStyle="None" BorderWidth="0px" " but it's not working.
I am using below code to implement telerik menu control in my website.
1) Static Menu
<telerik:RadMenu ID="RadMenu1" runat="server" Width="600px" EnableRoundedCorners="true"
EnableShadows="true" BackColor="White" BorderStyle="None" BorderWidth="0px">
<Items>
<telerik:RadMenuItem Text="Home" Value="Home" Width="100px" NavigateUrl="MainPage.aspx" />
<telerik:RadMenuItem Text="About Us" Value="About Us" Width="100px" />
<telerik:RadMenuItem Text="Careers" Value="Careers" Width="100px" />
<telerik:RadMenuItem Text="Contact Us" Value="Contact Us" Width="100px" />
<telerik:RadMenuItem Text="Privacy" Value="Privacy" Width="100px" />
<telerik:RadMenuItem Text="Help" Value="Help" Width="95px" />
</Items>
</telerik:RadMenu>
2) Dynamic Menu
<telerik:RadMenu ID="RadMenu2" runat="server" Width="190px" EnableRoundedCorners="true"
EnableShadows="true" DefaultGroupSettings-RepeatDirection="Vertical" DefaultGroupSettings-RepeatColumns="1"
EnableSelection="true" OnItemDataBound="RadMenu2_ItemDataBound"/>
Thanks,
Vatsal
How can I implement two different css class for
- Menu Item not selected
- Menu Item selected
I don't want to set it from code behind. Is there any way to set it from aspx page itself. Something like, SelectedItemCssClass="ItemSelected" and ItemCssClass="MenuItem" etc.
Also, I want to remove border of menu control. How can I do this? I tried " BorderStyle="None" BorderWidth="0px" " but it's not working.
I am using below code to implement telerik menu control in my website.
1) Static Menu
<telerik:RadMenu ID="RadMenu1" runat="server" Width="600px" EnableRoundedCorners="true"
EnableShadows="true" BackColor="White" BorderStyle="None" BorderWidth="0px">
<Items>
<telerik:RadMenuItem Text="Home" Value="Home" Width="100px" NavigateUrl="MainPage.aspx" />
<telerik:RadMenuItem Text="About Us" Value="About Us" Width="100px" />
<telerik:RadMenuItem Text="Careers" Value="Careers" Width="100px" />
<telerik:RadMenuItem Text="Contact Us" Value="Contact Us" Width="100px" />
<telerik:RadMenuItem Text="Privacy" Value="Privacy" Width="100px" />
<telerik:RadMenuItem Text="Help" Value="Help" Width="95px" />
</Items>
</telerik:RadMenu>
2) Dynamic Menu
<telerik:RadMenu ID="RadMenu2" runat="server" Width="190px" EnableRoundedCorners="true"
EnableShadows="true" DefaultGroupSettings-RepeatDirection="Vertical" DefaultGroupSettings-RepeatColumns="1"
EnableSelection="true" OnItemDataBound="RadMenu2_ItemDataBound"/>
Thanks,
Vatsal