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

Preventing users from entering negative values in a RadNumericTextbox

1 Answer 499 Views
Input
This is a migrated thread and some comments may be shown as answers.
Indranik
Top achievements
Rank 1
Indranik asked on 06 Dec 2008, 11:32 AM
How do I users from entering negative values in a RadNumericTextbox
?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Dec 2008, 06:11 AM
Hi Indranik,

You can set the MinValue property to 0 in order not to allow negative values in RadNumericTextBox, if a negative value is entered it will be set to 0 on number evaluation. Otherwise you can use the RadMaskedTextBox control with a numeric mask (e.g.Mask="#####") and change the value of the PromptChar=" " (as its default value is "_").

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