This is a migrated thread and some comments may be shown as answers.
Tooltip doesn't show if control is disable
6 Answers 100 Views
This is a migrated thread and some comments may be shown as answers.
Quan Nguyen
Top achievements
Rank 1
Quan Nguyen asked on 01 Oct 2007, 08:33 PM
I have a button with a tooltip attach to it. On my master page I declare a Rad Tooltip Manager. The tooltip works fine when the button is enable but doesn't show when the Enabled property of the button is set to false.

6 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 02 Oct 2007, 07:18 AM
Hello Quan Nguyen,

The RadToolTipManager depends on events (set with the ShowEvent property) to show the tooltip. When the control is disabled such events are not fired - that is why the RadToolTip is not shown.




Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Quan Nguyen
Top achievements
Rank 1
answered on 02 Oct 2007, 07:21 AM
are there any workaround solutions to the problem?
0
Georgi Tunev
Telerik team
answered on 02 Oct 2007, 09:06 AM

I am afraid no - if there are no events for the RadToolTipManager to attach on, the RadToolTip cannot be shown. I apologize for not making this clear in my previous reply.

Generally speaking to be able to show a RadToolTip you need to use its client-side API. If you can implement your own logic that will call a simple Javascript alert() when you want to show a tooltip on a disabled element, send us that solution and we will rework it for you to show RadToolTip instead.



Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Quan Nguyen
Top achievements
Rank 1
answered on 02 Oct 2007, 09:20 AM
I'm thinking of tracking the position of the mouse movement and check if the mouse is over the disabled button or not. We know the position of the control and on the client side you check if the mouse is there or not. If yes you fire the tooltip event.
0
Murray
Top achievements
Rank 2
answered on 04 Jun 2014, 11:27 AM
0
Austin
Top achievements
Rank 1
answered on 12 Jun 2018, 11:19 PM

Wrap your control in question with a span tag, then target THAT with rad tooltip control. Keep all the enable, disable, etc logic tied to the control in question.  The paragraph tag will never be disabled, and will never have the event fire/not fire issue.

 

Telerik - This would probably be a safe and easy solution for you to implement for the radToolTip control itself.  Simply manipulate the DOM with a span around the 'target id' value and key off that instead of the targeted control.  

Asked by
Quan Nguyen
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Quan Nguyen
Top achievements
Rank 1
Murray
Top achievements
Rank 2
Austin
Top achievements
Rank 1
Share this question
or