Show on Hover, stick on Click

4 posts, 0 answers
  1. Jason
    Jason avatar
    44 posts
    Member since:
    Apr 2013

    Posted 20 Sep 2013 Link to this post

    I would like the tooltip to temporarily show when you hover over the target (and then disappear when you move mouse away)... but I would like the tooltip to stay when you click on the target (then go away when you click on the target again).

    I have figured out how to do both of the above but I can't figure out how to combine them so the same target can use both behaviors.

    Thanks
  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 24 Sep 2013 Link to this post

    Hi Jason,

    The described functionality is currently not supported out of the box, however you can achieve similar behavior by initializing two Tooltip widgets - one showing on click and one showing on hover. You can see an example here.
     

    Regards,
    Alexander Popov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Jason
    Jason avatar
    44 posts
    Member since:
    Apr 2013

    Posted 26 Sep 2013 Link to this post

    Alexander,  Thanks for the help with this one!  While the solution you suggested does work for a first click, after you click on the text to make the tooltip stick and then close it -- it acts buggy on from then on when you hover it or try and click to envoke it.
  5. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 30 Sep 2013 Link to this post

    Hello Jason,

    I apologize for misleading you - the example intended to give you a direction, not a complete implementation as providing custom solutions is outside the scope of our standard support services.
    You can however find an updated version of the example here.
     
    Regards,
    Alexander Popov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready