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

Tooltip with javascript function reference

2 Answers 95 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Bryan
Top achievements
Rank 1
Bryan asked on 11 Feb 2015, 09:05 PM
So, I'm attempting to insert a javascript defined elsewhere on a click event in the tooltip as follows:

'<div class="col-md-2"><a onclick=\'jumpme(2,"' + data[0].id+ '");\'>' + data[0].LastName + ' test</a></div>';

in  a content function. If I replace 'jumpme' and the first argument with an alert box, it works fine, but I'm trying to figure out how I can get a function defined elsewhere to fire. The console says the function is undefined, but if I reference it in the row template of the grid that uses this tooltip, it works as expected. How can I get this to fire?
Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 13 Feb 2015, 12:24 PM
Hello Bryan,

The issue may be related to the exact quotes configuration. Can you please check the following sample and configure it depending on your custom scenario?
http://dojo.telerik.com/UGATU/7

Regards,
Eyup
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bryan
Top achievements
Rank 1
answered on 17 Feb 2015, 03:01 PM
Thanks, Eyup. That really helped.
Tags
ToolTip
Asked by
Bryan
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Bryan
Top achievements
Rank 1
Share this question
or