This is a migrated thread and some comments may be shown as answers.

Bug using float/Float data types

3 Answers 50 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sacha
Top achievements
Rank 1
Sacha asked on 23 Jun 2016, 01:00 PM

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

 

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 23 Jun 2016, 03:18 PM
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
0
Sacha
Top achievements
Rank 1
answered on 23 Jun 2016, 03:24 PM

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

0
Victor
Telerik team
answered on 27 Jun 2016, 06:58 AM
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
Tags
DataForm
Asked by
Sacha
Top achievements
Rank 1
Answers by
Victor
Telerik team
Sacha
Top achievements
Rank 1
Share this question
or