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

Columns format change culture

2 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
carlos
Top achievements
Rank 1
Veteran
carlos asked on 04 Aug 2020, 08:11 AM
Cómo se establece el formato es-ES para una columna tipo numerico? Por ejemplo: 10,564.24 
He probado esto: 
<script src="/lib/Kendo/js/kendo.culture.es-ES.min.js"></script>
...
<script>
$(document).ready(function(){
        kendo.culture('es-ES');
        ...

//column
{field: "nameField", title: "titleField", locked: false, lockable: true,  width: 150, aggregates: ["min","max","average"], groupHeaderColumnTemplate: "Avg: #= kendo.toString(average, 'n0') #", groupFooterTemplate: "<div>Max: #= kendo.toString(max, 'n0') #</div><div>Min: #= kendo.toString(min, 'n0') #</div>"}

2 Answers, 1 is accepted

Sort by
0
carlos
Top achievements
Rank 1
Veteran
answered on 04 Aug 2020, 08:25 AM

SOLVED:

 

kendo.culture("es-ES")

 

//column
{filed: "nameFiled", format:"{0:0.00}", ... }

0
Martin
Telerik team
answered on 05 Aug 2020, 04:20 PM

Hello Carlos,

I am glad that you were able to resolve the problem, and thank you for sharing the solution with the community.

Feel free to ask if you have any further questions.

Regards,
Martin
Progress Telerik

Tags
Grid
Asked by
carlos
Top achievements
Rank 1
Veteran
Answers by
carlos
Top achievements
Rank 1
Veteran
Martin
Telerik team
Share this question
or