atatching multiple "filter" tooltips to the body

4 posts, 1 answers
  1. Answer
    Diane
    Diane  avatar
    5 posts
    Member since:
    Mar 2013

    Posted 01 May 2013 Link to this post

    I am working on a backbone based single page application and having trouble with the tooltips. I figured using the "filter" option would be the best method so I currently have something like 
    $('body').kendoTooltip({
        filter : ".tooltip"
    });
    $('body').kendoTooltip({
        filter : ".bookmark",
        content : "bookmark"
    });
    I'm not sure but it seems as though all the tooltips break after a a new view is loaded even though the body is not changed, only some parts inside it.

    Also I notice that when I look out $('body').data() there only seems to be whatever the last tooltip I bound so in the above instance I see options.filter : ".bookmark" but not ".tooltip". 

    Maybe I'm missing something obvious but all help is appreciated

    Thanks
  2. Rosen
    Admin
    Rosen avatar
    3237 posts

    Posted 02 May 2013 Link to this post

    Hello Diane,

    I'm afraid that having multiple Tooltip widgets attached to a single element is not supported. You may consider combining the filter:

    $('body').kendoTooltip({
        filter : ".tooltip, .bookmark"
    });

    or attaching the Tooltips to separate container elements.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. Diane
    Diane  avatar
    5 posts
    Member since:
    Mar 2013

    Posted 02 May 2013 Link to this post

    Thanks! Combining filter will probably do the trick. 
  5. Sankar
    Sankar avatar
    6 posts
    Member since:
    Oct 2012

    Posted 07 Nov 2013 Link to this post

    $('body').kendoTooltip({
        filter : ".tooltip"
    });

    This works perfectly for filter based on class. Thanks for the reply!!!

Back to Top
Kendo UI is VS 2017 Ready