Grid Cell Edit Mode and Zeros in Numeric Editors

2 posts, 0 answers
  1. Eric J at FADV
    Eric J at FADV avatar
    17 posts
    Member since:
    Oct 2012

    Posted 05 Apr 2016 Link to this post

    If I have a grid in batch edit mode with numeric columns that add the numeric Editor to the cell, I need it so that when the field value is 0 (zero) it either shows as blank or highlights the zero so a user can type the value without the superfluous zero. In other words, a data-entry person using the keyboard (over the spinner) to navigate the grid and enter data, will need to do extra work to prevent the value from staying as "4000" when they intend to enter "400", b/c the cursor by is to the left of the default value. I've done this myself many times in unit testing. It's an annoying trait when they want to do rapid keyboard-based data entry.
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 posts

    Posted 07 Apr 2016 Link to this post

    Hello Eric J at FADV,

    I would suggest to use the edit event and simply clear the input value if the value is "0". In this case there will be no need user to delete the value and then type the desired value.  Please refer to the example. 

    Boyan Dimitrov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top