Rad Menu need to highlight template item

2 posts, 0 answers
  1. Patrick Poirier
    Patrick Poirier avatar
    2 posts
    Member since:
    Jun 2010

    Posted 16 Aug 2010 Link to this post

    Hi,

    I have a Rad menu with a itemTemplate and I need to highlight the item when I am on mouse over.

    Any ideas??

    Thank's
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 20 Aug 2010 Link to this post

    Hi Patrick Poirier,

    You can use the Css Class below:

    <style type="text/css">
            .CustomItem:hover
            {
                background-color: Yellow !important;
            }
        </style>

    <telerik:RadMenu ID="RadMenu1" runat="server">
               <ItemTemplate>
                   <asp:CheckBox ID="CheckBox1" runat="server" Text='<%# DataBinder.Eval(Container, "Text") %>' />
               </ItemTemplate>
               <Items>
                   <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1" CssClass="CustomItem">
                       <Items>
                           <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1" CssClass="CustomItem">
                           </telerik:RadMenuItem>
                           <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2">
                           </telerik:RadMenuItem>
                       </Items>
                   </telerik:RadMenuItem>
               </Items>
           </telerik:RadMenu>

    Hope this helps.

    All the best,
    Veronica Milcheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top