extjs - How to come out of the inserting row in grid row insert -


im trying insert record in grid using validation , on meeting gets inserted, want when validation fails, want dirty deleted, not reload store.. i'm trying this.. (a part)

ext.each(gridrows, function(gridrow) {       if (gridrow.dirty) {         if ((dirtind !== 0 && (ext.date.diff(new date(prevocc), modifiedocctime, ext.date.second) < 0)) {             isincorrectpos = true;           };         }          else if (isincorrectpos) {            ext.messagebox.confirm('delete', 'are sure ?', function(btn) {             if (btn === 'yes') {               ext.each(gridrows, function(gridrow) {                 gridrowsdirty.pop(gridrow.data);                 grid.store.load();                 //me.el.unmask();               });             }           }); 

unmask() keeps row dirty is, waits user modify correct record , add, want come of row in didnt try add row, not reload grid. how can able achieve this?


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -