More in this section
Forums / Designing with Sitefinity / panelbar: different class names per item

panelbar: different class names per item

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Meister
    Meister avatar
    262 posts
    09 Nov 2007
    26 May 2010
    Link to this post

    I have the following layout


    I want to have different class name on each of the items as below

    home = classname1
    services = classname2
    service1 = classname2
    service1Info= classname2
    service3= classname2
    contact = classname3

    What code would i need to alter the panelbar to do that?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    26 May 2010
    Link to this post
    Hello Meister,

    You could subscribe for ItemDataBound event, get the PanelBarItem by text or another property and set the CssClass property of the node.

    Sincerely yours,
    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.
2 posts, 0 answered