Greetings,
Does RadStyleSheetManager already provide a way to include stylesheets external to the root directory of an application that I have not found?
For example, is there a way to set each of the RadStyleSheetManager.StyleSheets as hyperlinks in the code behind?
If not, why not ? & is this a planned enhancement ?
Take the following two examples :
Example1: Relative-to-root path fail.
Complies fine, but will error at runtime with "cannot use a leading .. to exit above the top directory" (.net constraint, not bug nor Telerik constraint).
<
telerik:RadStyleSheetManager
ID
=
"RadStyleSheetManager"
runat
=
"server"
OutputCompression
=
"AutoDetect"
EnableStyleSheetCombine
=
"true"
>
<
StyleSheets
>
<
telerik:StyleSheetReference
Path
=
"~/../../../WebAssets/Styles/mainstyles.css"
/>
<
telerik:StyleSheetReference
Path
=
"~/../../../WebAssets/Styles/extrastyles.css"
/>
</
StyleSheets
>
</
telerik:RadStyleSheetManager
>
<
appSettings
>
<
add
key
=
"Telerik.Web.UI.StyleSheetFolders"
value
=
"~/../../../WebAssets/Styles"
/>
</
appSettings
>
Example2: virtual directory fail.
.AXD can't serve the resources at all becuase it can't find them even though these paths are correct at runtime if linked 'normally'.
<
telerik:RadStyleSheetManager
ID
=
"RadStyleSheetManager"
runat
=
"server"
OutputCompression
=
"AutoDetect"
EnableStyleSheetCombine
=
"true"
>
<
StyleSheets
>
<
telerik:StyleSheetReference
Path
=
"~/VirtualDirWebAssets/Styles/mainstyles.css"
/>
<
telerik:StyleSheetReference
Path
=
"~/VirtualDirWebAssets/Styles/extrastyles.css"
/>
</
StyleSheets
>
</
telerik:RadStyleSheetManager
>
<
appSettings
>
<
add
key
=
"Telerik.Web.UI.StyleSheetFolders"
value
=
"~/VirtualDirWebAssets/Styles"
/>
</
appSettings
>