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

problem applying custom skin

4 Answers 187 Views
Grid
This is a migrated thread and some comments may be shown as answers.
newbie
Top achievements
Rank 1
newbie asked on 01 Apr 2008, 11:17 PM

I want to apply my own custom skin to the Grid.

I have gone through the following articles:
http://www.telerik.com/help/radcontrols/prometheus/ -> controlling Visual Appearance.

I tried registering my skin and also by putting my skin under App_themes.
but my grid doesn't load properly.

When i don't specify anything the grid is fine.
I just copied the Default skin and renamed it to MySkin.

Now when I specify this - 

EnableEmbeddedSkins

="false" Skin="MySkin" ImagesPath="~App_Themes\MySkin\Grid"
 
my grid does not show any images and borders and does not have proper alignment.  Please tell me what am i doing wrong. I haven't yet changed anything in the skin files, just renamed it and specified the custom skin.


4 Answers, 1 is accepted

Sort by
0
newbie
Top achievements
Rank 1
answered on 01 Apr 2008, 11:45 PM
I think the problem was because i was not creating a .skin file.

I created a MySkin.skin file and gave the skinID for the grid="MySkin".

Now the grid is loading with the images but any changes i make to the css are not being reflected.

I am not sure if it's taking the skin from the skinID or is it still using the default.It appears to me that it is not using the new skin because none of the changes i make to the new skin are not reflected.

How can i use this custome skin?
0
newbie
Top achievements
Rank 1
answered on 02 Apr 2008, 12:49 AM
0
Nick
Top achievements
Rank 2
answered on 21 Apr 2008, 07:20 PM
I've gone over that link and I still can't get it to see my custom skin.  Can you post exactly what you did?  Thanks!!!
0
newbie
Top achievements
Rank 1
answered on 22 Apr 2008, 04:03 PM
I changed the default skin to my custom skin  and put it under this structure RadControls->Skin->Grid->Grid.CustomSkin.css

and put the images under RadControls->Skin->Grid

If you drop the css file on your aspx page it will register the custom skin for you.
Then you can just specify 

<

telerik:RadGrid ID="grdActiveWarning" runat="server" ImagesPath="../RadControls/Skin/Grid"

EnableEmbeddedSkins="false" Skin="CustomSkin">

Tags
Grid
Asked by
newbie
Top achievements
Rank 1
Answers by
newbie
Top achievements
Rank 1
Nick
Top achievements
Rank 2
Share this question
or