This is a migrated thread and some comments may be shown as answers.
Decimal to Currency format ( remove decimals)
2 Answers 58 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jithesh
Top achievements
Rank 1
Jithesh asked on 02 Nov 2011, 05:03 PM
Hi,

I'm using ajax binding to bind my columns. While binding I'm trying to format decimal value in a column to return a currency value with no decimals. (eg. 1334.56 as $1,334). I'm trying to do this using .Format("{0:C0}"). Though it removes the decimals from number, it appends 'C' instead of $ sign.(e.g. C1334). What could be the issue. Is there an alternative approach to implement this. Can you help me identify if I',m going wrong somewhere.

Regards
Jithesh

2 Answers, 1 is accepted

Sort by
0
Chandra Thumburu
Top achievements
Rank 1
answered on 03 Nov 2011, 01:47 AM
I would appreciate if someone from Telerik team could answer the above issue.
0
Georgi Krustev
Telerik team
answered on 03 Nov 2011, 02:40 PM
Hello Chandra,

 
This is a known limitation of the number formatting. In the latest official release of Telerik Extensions number format line "n0" or "c0" was not supported. I am glad to inform you that we addressed this issue in the latest internal build of Telerik Extensions for ASP.NET MVC.

Kind regards,
Georgi Krustev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
Jithesh
Top achievements
Rank 1
Answers by
Chandra Thumburu
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or