Kendo grid convert automaticlly strings with decimals to int

2 posts, 0 answers
  1. IMF
    IMF avatar
    17 posts
    Member since:
    Jun 2012

    Posted 09 Nov 2017 Link to this post

    I have this property :

    public string Commax_dosismaximam2 = "0,03"


    And when it renders on the grid it become to 3.

    I know is something about the culture because if I change it to "0.03" works fine, but the thing is I made it string to avoid this, I don´t understand why kendo have to convert a string to a int. 


    Thank you

  2. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 10 Nov 2017 Link to this post


    This could occur if you are setting the type for that field to "number" in the Grid`s dataSource. If that is the case, you need to ensure that the decimal separator corresponds to the culture.

    Konstantin Dikov
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top