I don't know where else to ask this, but I figured this was as good a forum as any other.
I am making a number of web user controls and each control has a property for which skin should be applied to all of the Telerik RAD AJAX controls in my web user control. Right now there are at least 15 Telerik skinnable controls on the page.
What I want to do is to write a piece of code suchly:
If (CustomSkinName <> "") Then
For Each Control In Page.Controls
If ([[Control is a Telerik Skinnable Control]]) Then
Control.EnableEmbeddedSkins = False
Control.Skin = CustomSkinName
First question is: How do I determine "Control is a Telerik Skinnable Control"?
Secondly, it would appear that Grids and Charts don't share any common ancestor that has the skinning properties. What would the proper ancestor class be? Is there a better way? Reflection?