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

[Solved] Setting Skin

3 Answers 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ofer
Top achievements
Rank 1
Ofer asked on 13 Dec 2011, 02:44 PM
Dear Telerik,
I am posting this in behalf of my employee:
"I come from the world of web forms, using the Rad Controls.
The last few days I started using the Telerik MVC grid, and unfortunately I can't find a way in your demos or documentation, on how to set the skin. On web forms, I just wrote Skin = "Windows7" , but on the MVC Grid, I can't find a way.
I would really appreciate the help."

Would be glad if you could help him find the answer.

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 14 Dec 2011, 11:44 AM
Hello Ofer,

Basically the skin is being set by the StyleSheetRegistrar which can be found in the _Layout.cshtml
In order to change the default skin to windows7 you can modify the default StyleSheetRegistrar like so:

Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.css").Add("telerik.windows7.css").Combined(true).Compress(true))

I hope this helps.

All the best,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Ofer
Top achievements
Rank 1
answered on 14 Dec 2011, 11:57 AM
Dear Petur,
First of all thank you for the help, we were able to set the skin using your recommendation.
My question is this, if I want to arrange the skin for only the mvc grid, and not for all the components ?
Is their a way to do this ?
0
Petur Subev
Telerik team
answered on 16 Dec 2011, 03:27 PM
Hello Ofer,

The skinning mechanism of our MVC components is different and there is a single CSS file managing the styles for all kinds of components. As a result, multiple skins on the same page are not supported. If this is a requirement in your case, you should use additional CSS classes and custom styling also - please check this thread for more information.

Kind regards,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
Ofer
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Ofer
Top achievements
Rank 1
Share this question
or