+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / SitePanelBar Apply class to <LI>

SitePanelBar Apply class to &lt;LI&gt;

3 posts, 0 answered
  1. Serge
    Serge avatar
    8 posts
    Registered:
    06 Feb 2009
    02 Dec 2010
    Link to this post
    Hi,

    Is it possible to apply class to <LI> elementh when using SitePanelBar ?
    I've 3 level menu and I need to have smth like <li class="rpItem selected"> for 2nd level.
    But problem is that I can't access <LI>.. When I use onItemDataBound - i can add class to <a> but not to <li>

    Please advice!
  2. Serge
    Serge avatar
    8 posts
    Registered:
    06 Feb 2009
    02 Dec 2010
    Link to this post
    Any help please ?
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Dec 2010
    Link to this post
    Hello Serge,

    The RadPanelBar control that is used in SitePanelBar does not have a property which you can use to set a class over the <li> element. You can add class to the <UL> by using ChildGroupCssClass property or just use CssClass over the rpLink.

    Greetings,
    Ivan Dimitrov
    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
Register for webinar
3 posts, 0 answered