This is a migrated thread and some comments may be shown as answers.

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

1 Answer 225 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Brian Roth
Top achievements
Rank 1
Brian Roth asked on 17 Apr 2013, 06:05 PM
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

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Apr 2013, 08:13 AM
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!
Tags
ToolTip
Asked by
Brian Roth
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or