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

Format a tooltip

1 Answer 214 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 11 Apr 2012, 05:07 PM
The following does not work.  Is it possible to use a template and still format some values?
template: "${category} - ${value:N2}" 

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 12 Apr 2012, 12:19 PM
Hi Paul,

You can use the kendo.toString or kendo.format functions in order to format values inside a template. For example:
template: "#= kendo.toString(value, 'n0') #"

In the corresponding documentation, you can find more detailed information about these functions and available formats.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Paul
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or