Good day,
we have one treeview in a masterpage content, which is skinned using
The CSS file is in our project, and uses the webresource like this
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
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.
we have one treeview in a masterpage content, which is skinned using
<
telerik:RadStyleSheetManager
ID
=
"rssm"
runat
=
"server"
>
<
StyleSheets
>
<
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
'<%=WebResource("Ourskinsproject.Skins.TreeView.PlusMinus.png")%>'
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"
);
...
radStyleSheetManager.StyleSheets.Add(cssTreeview);
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.