ItemTemplate and selected CSS class

2 posts, 1 answers
  1. Arni Gunnar Ragnarsson
    Arni Gunnar Ragnarsson avatar
    13 posts
    Member since:
    Jul 2007

    Posted 02 Aug 2008 Link to this post

    <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 ... ?
  2. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 04 Aug 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top