This is a migrated thread and some comments may be shown as answers.

Ignoring onClick showEvent during handling onMouseOver event

1 Answer 44 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Przemek
Top achievements
Rank 1
Przemek asked on 13 Dec 2010, 05:08 PM
In our project, we've got a weppage with radgrid - one of its columns is templatecolumn with button inside. We're using onShow event set to "OnMouseOver" to displayo a tooltip. We noticed that some f our clients often click the button. When mouse starts to hover over the button but the tooltip isn't visible yet, they click the button which basically cancels the action of showing tooltip. It would be great if tooltip could ignore click on its parent in situation where it's already started to show due to onMouseOver action. Is it possible?

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 16 Dec 2010, 03:20 PM
Hello Przemek,

 What I can suggest in your case is to try one of the following options:


1) Set two tooltips - one onmouseover and on - onclick. In this manner, if the hover tooltip has not been shown, the onclick one will show after the specified delay

2) You can  use the OnClientShow event of the tooltip to set a flag. After that you can handle the click and if the flag is not set - programmatically show the tooltip by using its method show() or clear the flag.

I hope that my suggestions are helpful, let me know how it goes.

Best wishes,
Svetlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
ToolTip
Asked by
Przemek
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or