Functionality request: numeric prevent decimal

1 posts, 0 answers
  1. David Avery
    David Avery avatar
    57 posts
    Member since:
    Apr 2006

    Posted 03 Jun 2011 Link to this post

    Hey guys

    From searches, I see this going all the way back to 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?
Back to Top