I have a UserControl which contains many Telerik controls. I host this UserControl using RadHostItem which I populate on the CellFormatting event. How do I get the RadHostItem to apply the themes to its children?
- jorge
3 Answers, 1 is accepted
0
Martin Vasilev
Telerik team
answered on 13 Sep 2010, 03:48 PM
Hi Jorge Delgado-Lopez,
Thank you for writing.
You can use ThemeResolutionService class and its static ApplyThemeToControlTree method:
I hope this helps. Let me know if you have any other questions.
Sincerely yours,
Martin Vasilev
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
If I wanted to go about adding the theme from within the UserControl in which overridden function would I do so? I ask because it does not work when I set the theme name from within the UserControl's constructor or on the form's, which holds the usercontrol, load event. I have used:
I am afraid that I cannot understand very well your exact scenario and goal. Could you please open a new support ticket and send me a small sample project, which demonstrates your case? This will help me to investigate your particular scenario and provide you with accurate assistance.
Best wishes,
Martin Vasilev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!