Preventing users from entering negative values in a RadNumericTextbox

2 posts, 0 answers
  1. Indranik
    Indranik avatar
    40 posts
    Member since:
    Nov 2008

    Posted 06 Dec 2008 Link to this post

    How do I users from entering negative values in a RadNumericTextbox
    ?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Dec 2008 Link to this post

    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.
Back to Top