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

TabStrip Icon Sprites

1 Answer 75 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ashley
Top achievements
Rank 1
Ashley asked on 21 Feb 2012, 04:02 PM
We're trying to move away from using image icons in our application by displaying them with CSS Sprites instead. We've been able to do this pretty successfully in some of the other telerik controls, but can't find a way to replicate the imageurl property of the radtab. Using the cssclass property doesn't work with the tab styling and telerik's sprites.

Is there any way to do this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Kate
Telerik team
answered on 24 Feb 2012, 03:31 PM
Hello Ashley,

Currently the best approach that I can come up with is to set the ImageUrl property to each tab to a blank image and then apply a different css class to each of the tabs. Thus, you can assign one and the same sprite image with different background position. You can refer to the attached file for an example how this can be implemented with the RadPanelBar control. The approach would be the same for the RadTabStrip control.

All the best,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TabStrip
Asked by
Ashley
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or