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

How to add Telerik stylesheets to pages without Telerik controls

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aaron Abdis
Top achievements
Rank 1
Aaron Abdis asked on 25 May 2011, 04:41 PM
I know I'd done this once before, but cannot find where, and can't seem to find the code online anywhere either.

I have a site with Telerik controls in it. There is one page with out any telerik controls on it, but I'd like to use some of the styles from RadGrid in this page. I know there was a way to get the URL to include a specific control/skin stylesheet in your page so you could use the styles without having that particular control on your page.

What was the method to get the url?

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 26 May 2011, 06:28 AM
Hello Aaron,

The first suggetion is to add RadGrid on the page with Visible = false setting  or display: none and set to the desired skin.Thus the styles from the skin will be registered and you will be able to reference them.

Another approach is to register the Skin CSS manually in the head section of the page using link tag.

Check out the following forum which elaborates more on this.
Using Telerik stylesheet without Control.

Thanks,
Shinu.
Tags
General Discussions
Asked by
Aaron Abdis
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or