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

2 posts, 0 answers
  1. Brian Roth
    Brian Roth avatar
    136 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!

    Regards,
    Brian
  2. Dimo
    Admin
    Dimo avatar
    8330 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");

    Regards,
    Dimo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top