Tooltip doesn't always remove itself

7 posts, 1 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 24 Apr 2013 Link to this post

    http://screencast.com/t/QEp6FWPyLT

    This happens on the header and footer...

    It's a UL\LI with the tooltip applied to the LI

    Any ideas?
  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 26 Apr 2013 Link to this post

    Hi Steve,

    Are you using one instance of the Tooltip with a filter or multiple Tooltip widgets (one for each selected element). If the later is true, then you will need to close the other Tooltip instances manually, in order to ensure that only one instance is open at a time. This can be achieve via the show event as shown in this sample.

    Greetings,
    Rosen
    the Telerik team
    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. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 26 Apr 2013 Link to this post

    See attached

    The script just calls
    $(".tooltip").kendoTooltip();

    ...with the idea that if I need a tooltip anywhere just append that class
  5. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 29 Apr 2013 Link to this post

    Hi Steve,

    In such case you are using multiple tooltip instances and you should manually close them, as shown in my previous post. However, if the widget is instantiated over a single element which contains the elements for tooltipification, and the appropriate filter is set, then popup will be close automatically.

    $("#container").kendoTooltip({
        filter: ".tooltip"
    });

    Greetings,
    Rosen
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 29 Apr 2013 Link to this post

    I'm sorry Rosen, I don't understand...

    I can't just tell elements to be tooltips, I have to pass in a parent and filter to the elements?

    So in this case
    $("body").kendoTooltip({
        filter: ".tooltip"
    });
    I don't understand why it was build this way?
  7. Answer
    Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 29 Apr 2013 Link to this post

    Hello Steve,

    You can use both ways to instantiate ToolTip widget. However, in the first case as the selector returns multiple elements, thus multiple kendoTooltip instances will be created. As opposite to the container/filter approach, where a single instance of the Tooltip is created and a single popup is position dynamically at the appropriate targets - a shared tooltip.

    Greetings,
    Rosen
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 29 Apr 2013 Link to this post

    Got it, thanks! :)
Back to Top
Kendo UI is VS 2017 Ready