I'm trying to loop through all controls and translate text and tooltips. The text is under the control and the tag (which I'm using) can be found under the ElementTree.RootElement. I see that the toottip is under RadItem. How do I get to the RadItem from a RadControl or RadElement?
2 Answers, 1 is accepted
0
Accepted
Martin Vasilev
Telerik team
answered on 20 Jan 2010, 11:39 AM
Hi Ruth Goldberg,
Thank you for writing. Actually, there is no way to change the ToolTip for every control without taking into account the RadControl type. You can iterate over all controls and set the ToolTipText, but you will notice that this will not work for every RadControl:
Thank you for your reply. I had actually figured out by the time I got your reply that the controls with tooltips were items under their parent control. However, I was testing each type of control separately and casting to the appropriate control type. With your method, I can trap other types that I might have missed by just checking if the child is a RadItem type.