RadStyleSheetManager breaks all skins

2 posts, 1 answers
  1. Adi
    Adi avatar
    2 posts
    Member since:
    Aug 2012

    Posted 12 Jul 2012 Link to this post

    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?
  2. Answer
    Adi
    Adi avatar
    2 posts
    Member since:
    Aug 2012

    Posted 12 Jul 2012 Link to this post

    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>

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top