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

Custom Skin and RadStyleSheetManager

3 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 31 Oct 2008, 02:18 PM
I created custom skin and put it in theme folder. Now, I want to optimize this solution. I want to create assemble for css and images and use RadStyleSheetManager following http://www.telerik.com/help/aspnet-ajax/radstylesheetmanager.html

Ok, I have about 45 pages, and each page contains 3-5 type of telerik controls. I need to add RadStyleSheetManager on each page and add StyleSheetReference to all type of telerik controls used on the page.

How can I optimize development?


3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 31 Oct 2008, 02:20 PM
Hi Andrey,

Please refer to the following code library example, which demonstrates how to use custom skins with RadStyleSheetManager:

http://www.telerik.com/community/code-library/submission/b311D-bdhmdk.aspx


Let us know if you need more information.

Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Andrey
Top achievements
Rank 1
answered on 31 Oct 2008, 07:18 PM
I saw this project!

If I have 10 pages with several telerik controls I need to put RadStyleSheetManager on this pages and StyleSheetReference for each control (TextBox, ComboBox...). I think It's redundancy, because I need to define 'TelerikCustomSkins.TelerikSkinForComboBox.css' for ComboBox more then once. It's code duplication. It's bad style. Does other means exist?
0
Erjan Gavalji
Telerik team
answered on 02 Nov 2008, 03:10 PM
Hi Andrey,

Just a hint:
You can create a custom class, inheriting RadStyleSheetManager, which will have the StyleSheets collection pre-populated.

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Andrey
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Andrey
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Share this question
or