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

Generic code to apply skin to ALL user controls on page?

1 Answer 175 Views
SkinManager
This is a migrated thread and some comments may be shown as answers.
virgil
Top achievements
Rank 1
virgil asked on 04 Aug 2010, 06:53 PM
Hi,
I note that the RadSkinManager does not apply "skinID" property to user controls. For example, the included Telerik sample "LoginControl.ascx" does not inherit the skin set using RadSkinManager on the masterpage.
Is there some generic code you could suggest that could be applied to any of the following to program the user controls to inherit the skin of the masterpage?
Page_Load event of either the masterpage or the actual user control
OnPreInit of the BasePage class

...or is there a more efficient way of applying skins to user controls programmatically?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 09 Aug 2010, 11:25 AM
Hi virgil,

The default behavior of RadSkinManager if you put it in a Master Page is to skin all the controls in the content pages and user controls which do not have an explicitly set Skin property or are not listed in the RadSkinManager's TargetControls collection. In other words, if you do not include any controls in the TargetControls collection and do not set skins explicitly, all RadControls will be skinned by RadSkinManager with the currently chosen skin. If you observe another behavior, there must be some issue on the page.

Greetings,
Tsvetina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
SkinManager
Asked by
virgil
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or