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

2 posts, 0 answers
  1. virgil
    virgil avatar
    3 posts
    Member since:
    Aug 2010

    Posted 04 Aug 2010 Link to this post

    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?
  2. Tsvetina
    Tsvetina avatar
    2378 posts

    Posted 09 Aug 2010 Link to this post

    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.

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