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

Formatting grid in combination with localization

3 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wim
Top achievements
Rank 1
Wim asked on 12 Jan 2013, 02:34 PM

I have set the culture to 'nl-BE' which should display currencies in the '€ 12,34' format. It doesn't however...

Found that applying a row template caused this behaviour.  Worked with column template instead and everything works just fine now.

3 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 15 Jan 2013, 02:45 PM
Hi Wim,

Row template defines the structure of the whole row and ignores settings such as column format. To get this working please use the kendo.toString() method inside the row template. As an example:
<td>#= kendo.toString(fieldName, "c") #</td>

In case this does not help, please provide your Grid, DataSource and template configuration so I can examine it in details.
Thank you in advance.

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!
0
Wim
Top achievements
Rank 1
answered on 15 Jan 2013, 04:33 PM
This did the trick.  Thank you.

Where can I find more information regarding formatting? ("c", "{0:c}", "p", etc...)
0
Alexander Valchev
Telerik team
answered on 15 Jan 2013, 04:45 PM
Hi Wim,

I am glad to hear that the problem is resolved.

For more information please check the Globalization help topics located in getting started section:

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
Grid
Asked by
Wim
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Wim
Top achievements
Rank 1
Share this question
or