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

RadNumericTextBox Value as Decimal

1 Answer 114 Views
Input
This is a migrated thread and some comments may be shown as answers.
Craig Ennis
Top achievements
Rank 1
Craig Ennis asked on 02 Sep 2011, 07:45 PM
Hi,

I'm trying to get the Value property to be Decimal instead of Double.
I tried changing the DataType="System.Decimal" with no results.

Any ideas?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Sep 2011, 07:06 AM
Hello Craig,

This is an expected behaviour.RadNumericTextBox internally uses type Double regardless of the DataType setting.Whatever the value type you assigned, it will be parsed to double,so it can't return decimal or another type.
DataType
property determines what will be the data type that comes from DbValue property. So you will always have to convert the value into Decimal. There is no way to use it directly.

Thanks,
Princy.
Tags
Input
Asked by
Craig Ennis
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or