TabStrip Icon Sprites

2 posts, 1 answers
  1. Ashley
    Ashley avatar
    16 posts
    Member since:
    Feb 2012

    Posted 21 Feb 2012 Link to this post

    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?
  2. Answer
    Kate avatar
    1898 posts

    Posted 24 Feb 2012 Link to this post

    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,
    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.
Back to Top