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

Reusing Skin Graphics

2 Answers 65 Views
Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 05 Feb 2010, 09:48 AM
Hi,

I wish to reuse some of your gradient images etc from a certain skin (say Office2007), could you please describe (or point me to a guide) how I can go about locating a particular graphic I like.

i.e. say I like the gradient in the header of a radgrid? how can I get hold of it (or even simply reference it in my own css)

Thanks
Matt

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 05 Feb 2010, 12:36 PM
Hello Matthew,

We provide non-embedded versions of our CSS files and images - look in the Skins subfolder in the RadControls installation folder (or ZIP).

There you have the following structure:

Skins  /  SkinName  /  ControlName  /   ......images....here.......

You can reference embedded images directly from the page like this:

<img src='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadControlName), "Telerik.Web.UI.Skins.SkinName.ControlName.ImageName.gif") %>' />

For example:

<img src='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadGrid), "Telerik.Web.UI.Skins.Default.Grid.sprite.gif") %>' />


Obviously, you cannot reference embedded images from external JS or CSS files.


All the best,
Dimo
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Matt
Top achievements
Rank 1
answered on 08 Feb 2010, 11:26 AM
Thank you, exactly what I wanted, and beautifully orgainsed. :)
Tags
Visual Style Builder
Asked by
Matt
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Matt
Top achievements
Rank 1
Share this question
or