Problem using webresource and iframe treeview skin

1 posts, 0 answers
  1. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 02 Jul 2013 Link to this post

    Good day,

    we have one treeview in a masterpage content, which is skinned using

        <telerik:RadStyleSheetManager ID="rssm" runat="server">
                <telerik:StyleSheetReference Assembly="Ourskinsproject.Skins" Name="Ourskinsproject.Skins.TreeView.Ourskin.css" />

    The CSS file is in our project, and uses the webresource like this

    .Ourtreestyle .rtPlus, .rtMinus
        background-image: url('<%=WebResource("Ourskinsproject.Skins.TreeView.PlusMinus.png")%>');

    And the treeview renders correctly. Images are in fact embedded in the DLL.

    The problem is:
    Inserting the same treeview into a different page, in an IFRAME (no masterpage), "breaks" the skin, which elements become invisible, meaning that they will not be parsed from webresource, and the image urls remain in their

    unparsed format.

    We use code to add the skin to the page, like this

        protected override void OnInit(EventArgs e)
            StyleSheetReference cssTreeview = new StyleSheetReference("Ourskinsproject.Skins.Treeview.Ourskin.css", "Ourskinsproject.Skins");

    The css is actually present in the page, and its styles are available and applied, but URLs will not be processed by the webresource.

    What are we missing? What needs to be done for the css to be parsed, other than adding it to the page?

    Thanks in advance.
Back to Top