I have discovered what I believe to be a bug on the RadLabel control. When you react to the ToolTipTextNeeded event the sender is the Label element and not the label control, this is contrary to the other events, such as the mouse click event which the sender is the Label.
1 Answer, 1 is accepted
0
Deyan
Telerik team
answered on 03 Sep 2009, 08:44 AM
Hello Jerel,
Thanks for contacting us. Actually this is not a bug. ToolTipTextNeeded event is implemented on a RadElement level (RadElement is the base class for all elements which are used to build the visual hierarchy of a RadControl) and thus the sender object contains the element which initiated this event. If you want to have a reference to the control which is associated with the element the following code snippet demonstrates how to achieve this: