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

Functionality request: numeric prevent decimal

0 Answers 58 Views
Input
This is a migrated thread and some comments may be shown as answers.
David Avery
Top achievements
Rank 1
David Avery asked on 03 Jun 2011, 09:13 PM
Hey guys

From searches, I see this going all the way back to asp.net non ajax.  Many people want the ability to use the numeric to capture an integer.  I know the decimal gets removed when you lose focus, but I would prefer to see it not accepted, like if an alpha key is hit.  I know we can code keypress events and do all sorts of other stuff, but I think this is important enough to be considered a behavior of the control.  For instance, if :

<NumberFormat DecimalDigits="0" GroupSeparator=""/>

Pressing the decimal point or comma should throw the error symbol and not echo the character.  What do you think?

No answers yet. Maybe you can help?

Tags
Input
Asked by
David Avery
Top achievements
Rank 1
Share this question
or