Grid incorrectly truncates long integral types when parsing

2 posts, 0 answers
  1. luke
    luke avatar
    1 posts
    Member since:
    Mar 2019

    Posted 03 Jan Link to this post

    I have a long variable.

    Normally, there are no problem displaying this value on the grid.
    However, when the value gets very large, it gets truncated.

    Original value: 144254210960752435
    Truncated value: 144254210960752420

    The original value is still within the max range of long, so the truncation shouldn't happen.

    At the moment, the only workaround I can think of, is to create a string variable to store the long value, and have grid display that string variable instead.

    Is there a better way to resolve this problem?

  2. Anton Mironov
    Anton Mironov avatar
    168 posts

    Posted 06 Jan Link to this post

    Hi Luke,

    Thank you for the provided image and details.

    Unfortunately, this one is a part of the JavaScript limitations:

    You are totally correct about the workaround. Use the "toString" method for the purpose.

    Let me know if I could assist with anything else.

    Kind Regards,
    Anton Mironov
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at

Back to Top