Results 1 to 5 of 5

Thread: How to get my input value in a row-editing status?

  1. #1
    Sencha User hexawing's Avatar
    Join Date
    Nov 2009
    Posts
    73
    Vote Rating
    0
      0  

    Default How to get my input value in a row-editing status?

    Hello all,

    I want to do some validation before submit, so I must get the input value.
    But I can only get the value in store like this:

    PHP Code:
          validateedit: function(editoreoptions){
            
    console.log(e.record.data["mobile"]);
          } 
    I tried "e.value", but it is the value before I edit the cell.
    And also, it is the value of the cell whick I dblclick to trigger into row-editing mode, but no actually the cell's value which I edited.

  2. #2
    Sencha User hexawing's Avatar
    Join Date
    Nov 2009
    Posts
    73
    Vote Rating
    0
      0  

    Default

    Who can help me...

  3. #3
    Sencha User kiranadn.net's Avatar
    Join Date
    Jun 2011
    Location
    Calicut,India
    Posts
    48
    Vote Rating
    -2
      0  

    Default

    Try the following snippet:

    Code:
    validateedit: function(editor, e, 
    
    options){
    console.log(e.record.get["mobile"]);
     
    
         } 
    



    Regards
    Kiran

  4. #4
    Sencha User hexawing's Avatar
    Join Date
    Nov 2009
    Posts
    73
    Vote Rating
    0
      0  

    Default

    thanks, but it has the same result as e.record.data["mobile"], I want the value after my change.
    e.g.:
    I changed someone's mobile number from 1111 to 2222. Via this code I got 1111, but I hope it can be 2222.

  5. #5
    Sencha User hexawing's Avatar
    Join Date
    Nov 2009
    Posts
    73
    Vote Rating
    0
      0  

    Default

    I know it...
    PHP Code:
    e.column.getEditor().getValue() 
    But...new problem comes...How can I get the specific column's value? "e" is just the grid I clicked.

Posting Permissions

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