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

RadStyleSheetManager breaks all skins

1 Answer 90 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Adi
Top achievements
Rank 1
Adi asked on 12 Jul 2012, 06:26 AM
I have developed a custom skin following all the instructions on the documentation and am trying to register my custom skin using RadStyleSheetManager as per this instruction.

I am using this in SharePoint application page and have put in all necessary entries into the web.config file according to this article.

My page is really simple, and in fact, I took the example from this thread and simply add in one more combo box into my application page with nothing in it.

So, all I have in my page are simply:
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
</telerik:RadStyleSheetManager>
<telerik:RadComboBox ID="RadComboBox1" Skin="SilverSkin" EnableEmbeddedSkins="False"
    runat="server">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" />
        <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" />
        <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" />
    </Items>
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
<telerik:RadComboBox ID="RadComboBox2" Skin="Metro" EnableEmbeddedSkins="True"
    runat="server">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="RadComboBox2 Item1" />
        <telerik:RadComboBoxItem runat="server" Text="RadComboBox2 Item2" />
        <telerik:RadComboBoxItem runat="server" Text="RadComboBox2 Item3" />
    </Items>
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>


Note that I didn't even register my custom skin in RadStyleSheetManager. When I load this page, no style is loaded for both Metro and SilverSkin (custom).
However, when I removed the RadStyleSheetManager control from the page, the Metro style comes back.
This problem only happens in SharePoint (2010) for some reason. What have I done wrong?

1 Answer, 1 is accepted

Sort by
0
Accepted
Adi
Top achievements
Rank 1
answered on 12 Jul 2012, 06:51 AM
Arg..... got it worked out...
If the Telerik assemblies are in GAC, then in web.config, we just have to put the full assembly name as such:

<system.webserver>
    <handlers>
      <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=xxxx.x.xxx.xx, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxxx" preCondition="integratedMode" />
    </handlers>
</system.webserver>

Tags
ScriptManager and StyleSheetManager
Asked by
Adi
Top achievements
Rank 1
Answers by
Adi
Top achievements
Rank 1
Share this question
or