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

Custom Skins and Command Icons

4 Answers 146 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin Warnke
Top achievements
Rank 1
Kevin Warnke asked on 03 Apr 2009, 03:18 PM
When using a built-in skin the command icons (edit, delete, etc.) are automatically pulled properly through the WebResource.axd handler.

However, when you change your skin to a custom skin, it just starts using URLs like "delete.gif" and "edit.gif" which of course do not exist in the folder of the user control that contains the grid.

What is the CORRECT way to update the skin so that the command icons are properly displayed based on the images located in the skin's folder?

Thanks,
Kevin

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 06 Apr 2009, 12:14 PM
Hello Kevin,

You can set ImagesPath for the RadGrid and the control will start taking all the image button URLs from that location. The images must have specific names, listed here:

http://www.telerik.com/help/aspnet-ajax/grdskins.html

Kind regards,
Dimo
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Tom
Top achievements
Rank 1
answered on 19 Nov 2009, 04:49 PM
Just a note to help others (and of course open to correction/clarification from Telerik)...

I'm not very experienced with using Skins, and after attempting to set the RadGrid's ImagesPath in a couple other places I found that the place that worked for me was within the RadGrid markup, e.g.
        <telerik:RadGrid ID="MyRadGrid" Skin="MySkin" ImagesPath="~/MyImages/Grid/" ...

(I had tried setting it in the .skin definition and from the codebehind, but the graphics such as paging arrows did not display.)

Note that our application implements dynamic loading of web user controls within a RadTabStrip-controlled RadMultiPage, as illustrated in one of the Telerik demos.  These web user controls each contain a RadGrid, and we wanted to apply our custom skin -- slight modification of Telerik's WebBlue -- to those RadGrids.

--Tom
0
Dimo
Telerik team
answered on 20 Nov 2009, 07:57 AM
Hi Tom,

The ImagesPath property should work no matter how you set it - declaratively, programmatically or in a theme. Please double-check your code and send us a simple demo if you need further assistance.

Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Gail
Top achievements
Rank 1
answered on 20 Jul 2011, 12:57 PM
Can the RadGrid ImagesPath be set globally (like EnableEmbeddedSkins, etc. in web.config) or am I required to set it seperately for each RadGrid that I create?

Thank you
Tags
Grid
Asked by
Kevin Warnke
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Tom
Top achievements
Rank 1
Gail
Top achievements
Rank 1
Share this question
or