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

How can I use numericTextBox to valide Int32 Type?

3 Answers 77 Views
Input
This is a migrated thread and some comments may be shown as answers.
liu qingshui
Top achievements
Rank 1
liu qingshui asked on 21 Apr 2010, 11:12 AM
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server"  CssClass="textBox" DataType="System.Int32" DisabledStyle-Font-Strikeout="False"
                                                                                                            </telerik:RadNumericTextBox> 


How can I change the DataType to System.Int32?

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 21 Apr 2010, 12:17 PM
Hello liu,

Setting the DataType property to System.Int32 should work for you. Are there any problems with its implementation?

Regards,
Maria Ilieva
the Telerik team


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 Public Issue Tracking system and vote to affect the priority of the items.
0
liu qingshui
Top achievements
Rank 1
answered on 22 Apr 2010, 03:52 AM
DataType="System.Int32"
The default DataType is "System.Double",I can't change it to the System.Int32.
But I can do it by setting " NumberFormat-AllowRounding="False" NumberFormat-DecimalDigits="0" ",
so now it looks like I already changed to Int32.

But I still want to know how it can really change it to System.Int32.
0
Maria Ilieva
Telerik team
answered on 27 Apr 2010, 11:45 AM
Hello liu,


Please note the only supported DataType for the Input control is Double. We consider it as big enough to include all other types. There is no supported way to set System.Int32 as default type for the control.


All the best,
Maria Ilieva
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Input
Asked by
liu qingshui
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
liu qingshui
Top achievements
Rank 1
Share this question
or