Results 1 to 2 of 2

Thread: EditorGridPanel Change value in aftereditevent

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    47

    Default EditorGridPanel Change value in aftereditevent

    I am trying make value processing in after edit event, with no huge success.

    Code:
               'afteredit' : 
                function afterEdit(e) {
                     if ( e.field == "idx1*" )  
                    {  
                      e.record.set( "idx1", 12345  );  
                      e.record.commit();      
    ...
    After edit of cell it changes to 12345... but extjs grid fires 2 ajax requests! In one is new value i insert manually , in second - 12345. One time ajax server saves faster one value, one time - another.

    Pls help me make this corretly, i.e. in 1 requestm with value 12345 ...

    , Arsen

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335

    Default Different event

    Perhaps you can use different event of editor grid panel..I think that you should use "beforestatesave" event..

    Thanks
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Posting Permissions

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