Reusing Skin Graphics

3 posts, 1 answers
  1. Matt
    Matt avatar
    58 posts
    Member since:
    Jun 2009

    Posted 05 Feb 2010 Link to this post


    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)

  2. Answer
    Dimo avatar
    8333 posts

    Posted 05 Feb 2010 Link to this post

    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  /

    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,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Matt
    Matt avatar
    58 posts
    Member since:
    Jun 2009

    Posted 08 Feb 2010 Link to this post

    Thank you, exactly what I wanted, and beautifully orgainsed. :)
Back to Top