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

Custom Skins and Themes

4 Answers 257 Views
Dock
This is a migrated thread and some comments may be shown as answers.
gnomo
Top achievements
Rank 1
gnomo asked on 13 Sep 2007, 09:27 AM
Hello
I have been trying to create a theme for raddocks with two custom skins and I get this compilation error message "Telerik.Web.UI.RadDock already has a default theme defined." whenever i try to add a second skin file to the theme folder.

Any ideas to solve this problem?

4 Answers, 1 is accepted

Sort by
0
gnomo
Top achievements
Rank 1
answered on 13 Sep 2007, 10:00 AM
I think there is also another problem:

If we have a theme with a custom skin and a custom skin outside of any theme. When in an apsx page we define a theme and at the same time we associate to a raddock the skin that is not in the theme, the last one is always overrided by the one in the theme.
0
Petio Petkov
Telerik team
answered on 21 Sep 2007, 06:48 AM
Hi,

I tried the following code and I was not able to reproduce your issue:

ASPX:
<%@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head id="Head1" runat="server">  
    <title>Untitled Page</title> 
    <link rel="stylesheet" href="Skin/PostIt/Dock.PostIt.css" type="text/css" /> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
    <div style="background-color:Green;width:800px;height:800px">  
            <rad:RadDockLayout ID="RadDockLayout1" runat="server">  
                <rad:RadDock ID="RadDock1" runat="server" SkinID="1" >                     
                </rad:RadDock>             
                <rad:RadDock ID="RadDock2" runat="server" SkinID="2">                     
                </rad:RadDock> 
                <rad:RadDock ID="RadDock3" runat="server" SkinID="CustomSkin">                    
                </rad:RadDock> 
            </rad:RadDockLayout>                     
     
    </div> 
    </form> 
</body> 
</html> 
Default.skin
<%@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<rad:RadDock runat="server" Skin="Office2007" SkinID="1"></rad:RadDock>             
<rad:RadDock runat="server"  Skin="Default"  SkinID="2"></rad:RadDock> 
<rad:RadDock runat="server"  Skin="PostIt"  SkinID="CustomSkin"  EnableEmbeddedSkins="false"></rad:RadDock> 
 

The result was:
RadDock1 is with Office2007 skin
RadDock2 is with Default skin
RadDock1 is with PostIt custom skin

I hope that this code will be in help for you. Otherwise, please open a support ticket and send us a simple running project where we can observe this issue. Once we receive it we will do our best to help you.

Best regards,
Petio Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
fenix2222
Top achievements
Rank 2
answered on 23 Nov 2009, 05:42 AM
Hi,

You used to have a nice demo on PostIt notes for RadDock. I am now using 2009 Q2 version and I cant find that demo anymore. I have taken sample from 2008, but rendering of the notes is corrupt. Title bar is shifted and pin and close commands are not shown at all. Do you have an updated version of the postit css file?
0
Martin
Telerik team
answered on 23 Nov 2009, 07:32 AM
Hello Igor Goldobin,

The PostIt! notes skin was a non-standard, and it was removed almost a year ago, and we cannot offer you a converted version of it, however you can create your own custom skin with that particular design. You may refer to the following help topic that describes the image sprites that are used in the new rendering of RadDock:

http://www.telerik.com/help/aspnet-ajax/dock_appearancetutorialcustomskin.html

Most probably you will need to do changes both to the Dock.css and Dock.SkinName.css files.

Regards,
Martin Ivanov
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.
Tags
Dock
Asked by
gnomo
Top achievements
Rank 1
Answers by
gnomo
Top achievements
Rank 1
Petio Petkov
Telerik team
fenix2222
Top achievements
Rank 2
Martin
Telerik team
Share this question
or