Applying Custom colors for raddocks in a page which inherts a masterpage

2 posts, 0 answers
  1. Nagesh Mynedi
    Nagesh Mynedi avatar
    35 posts
    Member since:
    Dec 2009

    Posted 21 Jan 2010 Link to this post

    Actually for a normal aspx page the custom colors are applying to raddocks,but when my page is inherting a masterpage it is not working.

    thanks in advance
  2. Pero
    Pero avatar
    1156 posts

    Posted 22 Jan 2010 Link to this post

    Hello Nagesh,

    I assume that you are using the following sample from our online demos to give custom looks to your docks: In this demo we are using CSS id selectors to apply unique styles to every dock. When the docks are placed in a "normal" page the ClientIDs of the docks are the same as the server IDs. So if we have a dock with ID="Weather" the following style will be successfully applied: #Weather{background:#f1eee1;}. However if the same dock is in a content page of a MasterPage (or in a WebUserControl) the styles will not be applied because this time the dock has different ClientID. The ClientId will look something like XXX_XXXX_Weather and the same style should be modified: #XXX_XXXX_Weather{background:#f1eee1;}. You can use IE Dev toolbar for IE browsers or Firebug addin for Firefox to find the correct ClientID (as shown in the attached screenshot).

    A different way to apply the same styles is to replace the id selectors with class selectors and set the custom CSS class to the CssClass property of the respective dock.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top