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

Custom chart tooltips

1 Answer 83 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 19 Jul 2013, 03:44 PM
How do I add a button to a tooltip so that when it is clicked it passes the dataItem of that point to a function? I need this to work across multiple types of charts.

1 Answer, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 23 Jul 2013, 02:03 PM
Hello Rishan,

In order to achieve your goal you need to add a template with a button with function wire up to the onclick client event and pass the dataItem to this function. You can examine this jsbin: http://jsbin.com/isekad/3/edit

I hope this helps.

Regards,
Hristo Germanov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Chart
Asked by
Alex
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Share this question
or