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

[Solved] RadScriptManager & RadStyleSheetManager

3 Answers 275 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pepito
Top achievements
Rank 1
Pepito asked on 14 May 2008, 01:59 PM
Hi telerik :

I am working with a lot staff from telerik controls  so i have decided to use both  controls.

And my cuestions are :

  1. I want to use both in the same page, well i want to use both in the master page.

Must i use RadScriptManager and RadStyleSheetManager in the same page ?or does  RadScriptManager  its job plus RadStyleSheetManager ?

    2. About skins and performance in the web applications

I am using web20 Skin. but i am customizabling some components because all fonts shoud be verdana, so in  alltextbox,combobox. EnableEmbeddedSkins is  false  and i am declaring the css for customizable controls  in the head of the marter page in the following way :


    <link href="Web20/ComboBox.Web20.css" rel="stylesheet" type="text/css" />
    <link href="Web20/Grid.Web20.css" rel="stylesheet" type="text/css" />
    <link href="Web20/Input.Web20.css" rel="stylesheet" type="text/css" />
    <link href="Web20/Menu.Web20.css" rel="stylesheet" type="text/css" />
    <link href="Web20/PanelBar.Web20.css" rel="stylesheet" type="text/css" />
    <link href="Web20/TreeView.Web20.css" rel="stylesheet" type="text/css" />


My most important corcern is the preformance (the speed to load the page) and my cuestions are :

Should I use  RadStyleSheetManager for the other components (For components which I am not cutomizabling) ? (i think RadStyleSheetManager  is only working with embedded skins, tell me please if it's different )

Should I merge all css(all css which i am cutomizabling) in one in order to load the page  faster ?

      3. and my last cuestion is about customizabling components  for every instance or in the css.

My last cuestion is about what is load  faster.
 I can use embedded  skins and everytime that i use  a textbox i modify the font or I disable EnableEmbeddedSkins  and use css as above.
What is better ?

Thank you very much. Pepito

3 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 15 May 2008, 03:32 PM
Hi Pepito,

Up to your questions:

  1. The RadScriptManager and RadStyleSheetManager controls have different purposes. For this reason, it is best to use both the controls - RadScriptManager will combine the Script resources, while RadStyleSheetManagerCss resources.
  2. Indeed, RadStyleSheetManager combines only resources, embedded in an assembly. However, the control in the RadControls for ASP.NET Ajax SP1 (released earlier today) has support for Css resources embedded in custom assemblies. We are working on the creation of a demo, which I can send you once ready. Of course, a combined stylesheet will result in a single <link> element on the page, which will improve its load time.
  3. Actually this depends on the exact scenario. Basically the best approach is to use a <link> tag, pointing to a merged Css file on a compression + caching enabled IIS7 server. As this often involves either custom tool creation, or poor maintennance, using RadStyleSheetManager to combine the Css resources.
I hope this helps.

Best regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Patrick Rivers
Top achievements
Rank 1
answered on 30 May 2008, 07:03 PM
I am running into the same scenario as the first poster.  I was wondering if you had completed the demo and if you have, if I could get a copy.

Thanks,

Josh
0
Peter
Telerik team
answered on 02 Jun 2008, 08:40 AM
Hi Joshua,

Thank you for your inquiry. I am glad to inform you that we have prepared a step-by-step help topic and a code library project: Including custom StyleSheets as WebResources to RadStyleSheetManager.  

If you have any questions, please feel free to contact us.

Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Pepito
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Patrick Rivers
Top achievements
Rank 1
Peter
Telerik team
Share this question
or