Ignoring onClick showEvent during handling onMouseOver event

2 posts, 0 answers
  1. Przemek
    Przemek avatar
    7 posts
    Member since:
    May 2009

    Posted 13 Dec 2010 Link to this post

    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?
  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 16 Dec 2010 Link to this post

    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,
    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.
Back to Top