Stylesheet for docks in usercontrol

2 posts, 0 answers
  1. Sameer
    Sameer avatar
    3 posts
    Member since:
    Jun 2010

    Posted 24 Apr 2013 Link to this post

    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?

  2. Slav
    Slav avatar
    1359 posts

    Posted 29 Apr 2013 Link to this post

    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.

    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.
Back to Top