-
10 Jul 2011 10:19 PM #1
How to get my input value in a row-editing status?
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:
I tried "e.value", but it is the value before I edit the cell.PHP Code:validateedit: function(editor, e, options){
console.log(e.record.data["mobile"]);
}
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.
-
11 Jul 2011 5:27 PM #2
-
11 Jul 2011 7:11 PM #3
Try the following snippet:
Code:validateedit: function(editor, e, options){ console.log(e.record.get["mobile"]); }
Regards
Kiran
-
11 Jul 2011 10:05 PM #4
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.
-
12 Jul 2011 1:29 AM #5
I know it...
But...new problem comes...How can I get the specific column's value? "e" is just the grid I clicked.PHP Code:e.column.getEditor().getValue()


Reply With Quote