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

Stylesheet for docks in usercontrol

1 Answer 41 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Sameer
Top achievements
Rank 1
Sameer asked on 24 Apr 2013, 09:09 PM
I have usercontrol to create Raddocks dynamically from the parent page. The radocks are using a stylesheet and have EnableEmbeddedSkins set to false.

When the stylesheet definition is provided in the user control, the dock controls have the right stylesheet applied to them, but loading the page takes a long amount of time as the same stylesheet is loaded over and over again for each dock control created by the user control (I do have quite a few of them on each page).
<link rel="stylesheet" type="text/css" href="../../Skins/DesignerSkin/Dock.DesignerSkin.css" />

So what I was trying to do is define the stylesheet on the parent page so that it won't be loaded multiple times there by reducing the loading time for the page. Doing so, does reduce the load time, however, the stylesheet doesn't get applied to the dock controls. I even tried exposing the dock controls from the user control and setting the 'skin' property from parent page, but it still doesn't work.
<head><link rel="stylesheet" type="text/css" href="../../Skins/DesignerSkin/Dock.DesignerSkin.css" /></head>

Can someone suggest a way to work around this issue?

Thanks.
Sameer

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 29 Apr 2013, 11:51 AM
Hello Sameer,

Please ensure that you have completed the steps in the help article Tutorial: Creating a Custom Skin in order to create a custom appearance for the RadDock.

I would also suggest checking if the path your your stylesheet is still correct after moving the reference in the parent page.

Greetings,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Dock
Asked by
Sameer
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or