Number custom field

Posted by Community Admin on 04-Aug-2018 16:54

Number custom field

All Replies

Posted by Community Admin on 15-Feb-2012 00:00

there are inconsistencies when creating a Number type custom field.

The comboBox "Decimal places" doesn't select number of digits to the right of the decimal point. It sets DB Precision which is the number of digits allows for this number. So for set scale we have to made it in Advanced section.

Also "DB Precision" field are not use when column is created, it's automatically set to 20 in precision.

This field can allow empty value, but if you don't fill it. It's initialized to 0 in database.


Posted by Community Admin on 17-Feb-2012 00:00

Hi Nicolas,

 Actually the field does initialize itself with a null value, but since OpenAccess doesn't support int?(nullable) type, it puts an int(regular) in the view-model and this is why when you republish the item, it gets the value from the view model and puts it in the database - if you check the database before you republish the item, you will see that the value is null.
As for the inconsistencies - this really seems a little confusing by design, so we will consider changing it for our future releases. Thanks for the suggestion.

All the best,
Svetoslav Petsov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed