title: beforeedit and edit EXTJs
body: <p>I am trying to pass a record from a <code>beforeedit</code> to a <code>edit</code> in EXT js in an editable grid, because I need to do a validation depending on the previous value of that field. For example I have the row (telephone number), when I tried to edit that field, I can do it only if telephone starts by 6, but if telephone starts by 9 I can only change it to another telephone that starts by 9.</p>
  
  <p>I use the next in my code, but I dont know how can pass to the edit function the value before to edit. Here is my code:</p>
  
  <pre><code>   listeners: {
  
           beforeedit: {
               scope: this,
               fn: function(e, context2){
                   var record2= context2.record;
                   var recordData2=record2.getData();
                   alert(JSON.stringify(recordData2));
               }
  
           },
  
           edit: function(e, context){
  
               var record = context.record;
               var recordData = record.getData();
               recordData.Funcionalidad = 'Modificar';
               alert(JSON.stringify(recordData));
               Ext.Ajax.request({
                   url: 'http://localhost:8080/MyMaver/ServletTablaLotes',
                   method: 'POST',
  
                   // merge row data with other params
                   params: recordData
  
  
               });
           }
          }
  </code></pre>
  
  <p>How can I reference the previous value to the edit:function ?</p>