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

Value data type

3 Answers 72 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Hugo Aristizabal
Top achievements
Rank 2
Hugo Aristizabal asked on 20 Jan 2010, 10:12 PM
Hi, is there a way to change the data type returrned by the NumericUpDown's value? I need it to be int, not double, because it's mapped to a database field which has an int type, and I'm getting a conversion error. Thanks.

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 22 Jan 2010, 11:52 AM
Hello Hugo,

Thank you for contacting us.

You can set the data type of the NumericUpDown control to be integer by using the IsInteger property.
<telerikInput:RadNumericUpDown x:Name="numeric" IsInteger="True"/>

If you have further questions please feel free to contact us again.

Greetings,
Konstantina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Hugo Aristizabal
Top achievements
Rank 2
answered on 22 Jan 2010, 01:18 PM
Thanks, I saw the property. With it set to true, will I get the value as an int, or will I stillget it as a decimal?

Thanks again.
0
Konstantina
Telerik team
answered on 28 Jan 2010, 11:29 AM
Hi Hugo,

Straight to your  question.

With property IsInteger="True" you will get the values of the NumericUpDown as an integer.

If you have further questions please feel free to contact us again.

All the best,
Konstantina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
NumericUpDown
Asked by
Hugo Aristizabal
Top achievements
Rank 2
Answers by
Konstantina
Telerik team
Hugo Aristizabal
Top achievements
Rank 2
Share this question
or