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

Different image for each item on custom skin

2 Answers 23 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 20 Jul 2009, 08:01 AM
Hey!

I've got a custom skin for a Panel Bar with each item's background image
as well as rollover image set in the skin file in CSS. However, what I need
is to set the images dynamically because each item is a product category
that has its own background image. I understand there's different ways
of doing this - and I'm also cautious of performance... Any advice and
examples much appreciated!!

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 22 Jul 2009, 02:20 PM
Hi Joe,

You should set CssClass property for each item and have defined these css classes in your skin file. I've attached a simple page to demonstrate this approach.

Greetings,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Joe
Top achievements
Rank 1
answered on 23 Jul 2009, 04:51 AM
Thanks Yana!! That's worked well.
Tags
PanelBar
Asked by
Joe
Top achievements
Rank 1
Answers by
Yana
Telerik team
Joe
Top achievements
Rank 1
Share this question
or