Numeric format: 12,123.33 to 12.123,33 € US to Spain

2 posts, 0 answers
  1. JC
    JC avatar
    14 posts
    Member since:
    Nov 2012

    Posted 19 Jun 2014 Link to this post

    I need show this format: 12.123,33 € for use it in Spain.
    Change period (dot) for thousands and comma for decimals.

    In my code I have:
    <script type="text/javascript" src="js/kendo.culture.es-ES.js"></script>

    The value of the decimal column (MySQL database) is: 12123.33
    I tried with this code:
    a)
    $("#importe_oferta").kendoNumericTextBox({
    culture: "es-ES"
    format: "c2",
    min: 0,
    decimals: 2,
    spinners: false
    });
    Result: 1.212.33.00 € ->wrong

    b)
    $("#importe_oferta").kendoNumericTextBox({
    format: "c2",
    min: 0,
    decimals: 2,
    spinners: false
    )};
    Result: $12,123.33 ->wrong

    c)
    $("#importe_oferta").kendoNumericTextBox({
    min: 0,
    decimals: 2,
    spinners: false
     });
    Result: 1,2123.43 ->wrong

    And the same problem on the grid : 12,123.43 <-wrong

    If anybody have the solution of this problem, please write a possible solution.
    Thanks
    Julio
  2. Holger
    Holger avatar
    77 posts
    Member since:
    Nov 2012

    Posted 20 Jun 2014 Link to this post

    Hi,

    The following sample works fine for me: http://trykendoui.telerik.com/iJur

    Maybe there is an error in the reference to the culture file at your side?

    Regards
    Holger
  3. Kendo UI is VS 2017 Ready
Back to Top