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

ItemTemplate and selected CSS class

1 Answer 232 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Arni Gunnar Ragnarsson
Top achievements
Rank 2
Arni Gunnar Ragnarsson asked on 03 Aug 2008, 01:54 AM
<telerik:RadMenu ID="MainMenu" EnableEmbeddedSkins="false" Skin="Poker" runat="server"
    <ItemTemplate> 
        <href="<%#Eval("url")%>" title="<%#Eval("description")%>"><%#Eval("title")%></a
    </ItemTemplate> 
</telerik:RadMenu> 

Hi.

This is a RadMenu control I am using on a site I am working on. I am using a sitemap file as a datasource for the menu.

How can I set a selected class on the page I am currently viewing, using the ItemTemplate ... ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 04 Aug 2008, 03:18 PM
Hi Arni,

Please find attached a sample project which shows how to set selected class of item templates. 
Hope it helps.
 
Best wishes,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
Arni Gunnar Ragnarsson
Top achievements
Rank 2
Answers by
Yana
Telerik team
Share this question
or