Multiple tooltips tied to the same control - how to get all tooltips client side?

2 posts, 0 answers
  1. Brian Roth
    Brian Roth avatar
    139 posts
    Member since:
    Oct 2005

    Posted 17 Apr 2013 Link to this post

    I have a grid that has a few different tooltips tied to it.  Each tooltip is tied to a specific column in the grid.  I'd like to be able to do some modification to the tooltips client-side, but can't figure out how to access all of them.  $('#mygrid').data('kendoTooltip') only returns one tooltip, not all of them (in my case, I have 3 different tooltips.)

    Thanks for your help!

  2. Dimo
    Dimo avatar
    8407 posts

    Posted 19 Apr 2013 Link to this post

    Hi Brian,

    Multiple jQuery plugins initialized on the same DOM element can be accessed if you assign the resulting client objects to some variables during initialization.

    var foo = $("#myID").jQueryPlugin({option1: "value1"}).data("jQueryPlugin"),
       bar = $("#myID").jQueryPlugin({option1: "value2"}).data("jQueryPlugin");

    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top