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

The control type 'Telerik.Web.UI.RadDockLayout' cannot be themed.

6 Answers 129 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Angela
Top achievements
Rank 1
Angela asked on 05 Apr 2008, 06:14 PM
Hi,

I am running into this problem when I am trying to allow dynamic theming...

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The control type 'Telerik.Web.UI.RadDockLayout' cannot be themed.

Source Error:

<
telerik:RadDockLayout Skin="Default" runat="server" />

SPECIAL NOTE

I am able to successfully theme the RadMenu using the same logic...

<

telerik:RadMenu Skin="Default" runat="server" />

This works fine.

CONCLUSION

Possibly, that you forgot to give permission in your dock class to allow theming?

Any Help is greatly appreciated!

Angela

6 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 07 Apr 2008, 06:42 AM
Hi Angela,

Currently the RadDockLayout control does not support themes. The RadDockLayout control is not rendered on the client page. Therefore, setting a theme to RadDockLayout will not have direct effect. However, by design if the RadDockZone controls and the RadDock controls nested in the RadDockLayout control have no Skin property in the ASP.NET markup, they inherit the Skin property of the RadDockLayout control. Using this approach lets you change the skins of all the docking controls by a single property setting.
Setting a theme to the RadDockLayout would be a good feature of the control. That is why, we have already logged this issue in our feature requests list for future consideration and implementation.

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Waleed Seada
Top achievements
Rank 2
answered on 07 May 2008, 05:29 AM
Hello All,

Can I skin the DockZone and Dock Object, How ...??

Thanks and best regards
Waleed
0
Sophy
Telerik team
answered on 08 May 2008, 07:22 AM
Hi Waleed,

You can use the built-in skins provided by Telerik to skin the RadDockZones and the RadDocks by simply setting the Skin property of the corresponding control. The built-in skins are embedded in the Telerik.Web.UI.dll assembly as web resources.
I suggest you take a look at the Skins help article of the RadDock for ASP.NET AJAX for more details as well as to the other help articles from the Appearance and Styling section in case you want to use custom skinning.

If you need further assistance, do contact us again.

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Accepted
Waleed Seada
Top achievements
Rank 2
answered on 08 May 2008, 08:28 AM
Dear Telerik,

Finally I got reply to one of my questions, I am sure your busy and soon you will reply, anyway I manage to dynamically change the skin of raddock and raddockzone without using the skin propriety of the raddocklayout, Raddockzone or Raddock object, My approach is using skinid instead ...

Thanks and best regards,
Waleed
0
LeBear
Top achievements
Rank 1
answered on 15 Sep 2009, 05:13 PM
I'd like to see this enhancement sooner rather than later.

I don't want to set the Skin directly to the DockLayout, DockZone, or Dock as the code is base code that runs multiple sites with multiple appearances.  I can't apply a SkinID to the DockZone or Dock, as they are created too late in the page lifecycle due to availability of required data that is gathered by other objects in a complex inheritance hierarchy.  The DockLayout is the only statically created object, so I want to set a SkinID that can be altered on a per-site basis to specify a different skin.
0
Jim
Top achievements
Rank 1
answered on 18 Sep 2009, 03:11 PM
You can apply Skins globally to the RadDock by placing the following code in the web.config file:

<appSettings> 
    <add key="Telerik.Dock.Skin" value="Hay"/> 
 </appSettings> 


Tags
Dock
Asked by
Angela
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Waleed Seada
Top achievements
Rank 2
LeBear
Top achievements
Rank 1
Jim
Top achievements
Rank 1
Share this question
or