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

Using Telerik stylesheet without Control

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 20 Nov 2008, 11:28 AM
Hi,

We have several pages using RadGrid, and I now need to create a page with a simple HTML table on. I would like this table to emulate the column and row styles used by the RadGrids on other pages. However, as far as I can tell, the style information for a RadGrid is only imported when the Control is created on the page.

Is there a way that I can link to the Telerik styles for a RadGrid without having to create a RadGrid first?

Am very grateful for any help,

Martin

p.s. The styles I am interested in are

MasterTable_Office2007 and

 

GridRow_Office2007

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 20 Nov 2008, 11:41 AM
Hi Martin,

The first option would be to add RadGrid on the page with Visible = false setting (thus the grid will not be rendered at all) or display: none (thus the grid will be rendered as hidden html table wrapped inside a div) and Skin set to Office2007. Thus the styles from the Office 2007 skin will be registered and you will be able to reference them in your simple HTML table.

Alternatively, you can register the Grid.Office2007.css manually in the head section of the page using link tag. The default location of this file in the RadControls Q3 2008 installation is shown below:

C:\Program Files\telerik\RadControls for ASPNET AJAX Q3 2008\Skins\Office2007

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Martin
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or