Hello,
I want to use a RadNumericTextBox as input for integers. But there is still a problem: The user can still insert a decimal separator.
How can I prevent this?
This is the code:
What else must I set?
Thanks!
I want to use a RadNumericTextBox as input for integers. But there is still a problem: The user can still insert a decimal separator.
How can I prevent this?
This is the code:
textBox =
new
RadNumericTextBox();
textBox.ID =
"NumTextBox"
;
textBox.Type = NumericType.Number;
textBox.DataType =
typeof
(
int
);
textBox.NumberFormat.DecimalDigits = 0;
textBox.ShowSpinButtons =
true
;
What else must I set?
Thanks!