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

groupSize and number formatting issue

2 Answers 133 Views
Globalization
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 15 Oct 2012, 08:36 AM
When I use the Indian culture files say en-IN, the culture file has the groupSize specified as [3,2] which is initial 3 places and then 2 places after. However, kendo.format does not seem to respect it. Dug into the source files and I see only groupSize[0] being used in number format.

For example in en-IN culture, the currency format should return 12,34,567.00 and not 1,234,567.00. Is this a known issue or am I doing something wrong.

2 Answers, 1 is accepted

Sort by
0
Jayesh
Top achievements
Rank 1
answered on 20 Feb 2017, 08:38 AM
I am also facing the same issue. Is there any solution or work around to this. I see this post been unanswered over 3 years. Is it that Kendo developing team doesn't have a solution?
0
Jayesh
Top achievements
Rank 1
answered on 21 Feb 2017, 02:15 PM

The issue was a combination of old version and a bug with Telerik on determining the group size of culture.

In my case, I was trying to format the number and currency in en-IN. The group size was given as [3,2,0] in the respective kendo culture file. This lead to the formatting of currency/number in wrong way like putting the separator (,) after 3 then 2 and no separator thereafter. 

You can refer this link to get a work around to overcome this issue. 

How can we format a currency using culture group size in Kendo numeric text box?

Tags
Globalization
Asked by
Ravi
Top achievements
Rank 1
Answers by
Jayesh
Top achievements
Rank 1
Share this question
or