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

Image Sprites

2 Answers 159 Views
Button
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 04 Nov 2010, 06:55 AM
Just floating the idea...I know it wont be in the release, or potentially available ever

but: Sprite Framework for image button icons


2 Answers, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 09 Nov 2010, 05:15 PM
Hello Steve,

Thank you for the suggestion. We will take it into consideration when extending the control's functionality.

You can use image sprite for the Icons (or the button's image) in the following way:

  • Set a CSS class to the Icon, e.g. PrimaryIconCssClass="classIcon";
  • In the CSS class set the background-image and the background-position for the primary icon.
  • Set HoveredCssClass and PressedCssClass to the RadButton control
  • Cascade through the hovered and pressed classes to set the background positions for the hovered and pressed state, respectively.

Kind regards,
Pero
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
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 09 Nov 2010, 05:29 PM
Oh even better! 

Thanks for thinking of this!
Tags
Button
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Pero
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or