Results 1 to 3 of 3

Thread: How to restrict Number Field default value set to '0'

  1. #1
    Sencha User
    Join Date
    Feb 2016
    Posts
    2

    Default How to restrict Number Field default value set to '0'

    Hello Guys,

    I am using Extjs 3.4, I have a grid where I use editor function and form of NumberField type.
    Here is my scenario, when the user starts editing a number field and immediately clears it and navigating to next page makes the field value set to '0' with dirty flag set which i dont want.
    So, please help me out in having the control over the cell edited and also get the value i updated in the cells.

    Thanks in advance,
    RK

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Is the user normally restricted from entering a zero value?

  3. #3
    Sencha User
    Join Date
    Feb 2016
    Posts
    2

    Default

    Hi Gary, User can in fact enter zero in the field as well. So if the user starts editing an field, clears the field without no value in the field and submits to next page then it forcibly making the field value set to zero value which the user not intended.Thanks,rk

Similar Threads

  1. How to restrict the number of records to display in a grid
    By Yemi in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 14 Aug 2013, 12:06 AM
  2. default values for a textfield or number field ?
    By muncher in forum Ext 3.x: Help & Discussion
    Replies: 9
    Last Post: 13 Oct 2010, 11:56 AM
  3. How to restrict string value in column field.
    By sseema in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 26 Mar 2009, 1:50 AM
  4. Replies: 2
    Last Post: 20 Jan 2009, 8:44 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •