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

Rad Menu need to highlight template item

1 Answer 44 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Patrick Poirier
Top achievements
Rank 1
Patrick Poirier asked on 16 Aug 2010, 07:12 PM
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

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 20 Aug 2010, 09:12 AM
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
Tags
Menu
Asked by
Patrick Poirier
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or