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

Use RadGrid CssClass elements ourside of grid?

2 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 27 Jul 2008, 04:45 PM
To help maintain a consistent look, I would like to use some of the built in skin CssClass elements ourside of the grid.  For example, on one panel I have a header table row.  I would like it to use the same formatting of the desired built in skin for the RadGrid "HeaderStyle" element.  I am currently using the built in Vista skin.

I tried to set the CssClass attribute of the table row to "HeaderStyle", but it came up non-formatted... my guess is that I need to reference the css file for the Vista skin somehow, but wasn't sure how since it is built in.

Is this possible and can you provide the details to make this work?

Thanks!

Michael

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 28 Jul 2008, 11:08 AM
Hi Michael,

If you don't have the RadGrid Vista skin registered on a web page (i.e. you don't have Vista RadGrids in it), you have to register it manually. You can obtain the URL to the embedded CSS file like this:

C#

Page.ClientScript.GetWebResourceUrl(typeof(RadGrid), "Telerik.Web.UI.Skins.Vista.Grid.Vista.css");

After the skin is registered, you only need to add the correct CSS classes to your HTML elements. However, please read the following relevant forum thread and especially my post:

http://www.telerik.com/community/forums/thread/b311D-betgdb.aspx#576583


Greetings,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael
Top achievements
Rank 1
answered on 28 Jul 2008, 07:06 PM
Perfect!  As always, thanks for the great support!

Michael
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Michael
Top achievements
Rank 1
Share this question
or