Bug using float/Float data types

4 posts, 0 answers
  1. Sacha
    Sacha avatar
    10 posts
    Member since:
    Sep 2015

    Posted 23 Jun Link to this post

    Hello,

    If you try and use a field of type float or Float with DataForm, it appears to work, but does not commit properly. Changing to Double works fine. The problem is with setProperty in EntityBase. If the default DataFormDecimalEditor is used, then it tries to call (eg) setValue(float) with data of type Double, throws the exception, catches it silently and carries on - this is very bad!!!!! It makes it look like everything is working, but in fact it fails to commit. 

    See attached screenshots.

    KR

    Sacha

     

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 23 Jun Link to this post

    Hi Sacha,

    Thank you very much for reporting this.
    This exception should not be handled at all and the app should crash and notify the developer of the inconsistent data types.
    This will be fixed in the next release.

    Regards,
    Victor
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Sacha
    Sacha avatar
    10 posts
    Member since:
    Sep 2015

    Posted 23 Jun in reply to Victor Link to this post

    Thanks Victor. If it's possible to make it work with Float/float as an underlying data type, this would be very convenient indeed.

    KR

    Sacha

  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 27 Jun Link to this post

    Hello Sacha,

    Thanks for the feedback. We'll see what we can do to support float out of the box. Please write again if you need further assistance.

    Regards,
    Victor
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner