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

Problems with tooltip.Format decimal formatting?

2 Answers 63 Views
Slider
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stewart
Top achievements
Rank 1
Stewart asked on 12 Jul 2011, 09:55 PM

This feels like a bug, even if it is the intended behavior:

Fine:
        .Tooltip(tooltip => tooltip.Format("format here: {0:C}"))   => "Format here: $512,640.00"

But I'd like the value (an int) to display without the decimal. So:

Bug?
        .Tooltip(tooltip => tooltip.Format("format here: {0:C0}"))   => "Format here: C512640"

Bug?
        .Tooltip(tooltip => tooltip.Format("format here: {0:C1}"))   => "Format here: 512640"

Bug?
        .Tooltip(tooltip => tooltip.Format("format here: {0:C2}"))   => "Format here: 512640"

Thanks!

2 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 14 Jul 2011, 07:43 AM
Hi Stewart,

Unfortunately, this format is not supported, but you can try with custom numeric format string.

Best wishes,
Hristo Germanov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Marco Teodoro
Top achievements
Rank 1
answered on 28 May 2012, 10:37 AM
How can i localize decimal separator based on current ui culture?
Tags
Slider
Asked by
Stewart
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Marco Teodoro
Top achievements
Rank 1
Share this question
or