Columns format change culture

3 posts, 0 answers
  1. carlos
    carlos avatar
    11 posts
    Member since:
    Aug 2020

    Posted 04 Aug 2020 Link to this post

    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. carlos
    carlos avatar
    11 posts
    Member since:
    Aug 2020

    Posted 04 Aug 2020 in reply to carlos Link to this post

    SOLVED:

     

    kendo.culture("es-ES")

     

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

  3. Martin
    Admin
    Martin avatar
    299 posts

    Posted 05 Aug 2020 Link to this post

    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

Back to Top