Results 1 to 3 of 3

Thread: Deleting multiple rows doesn't work properly if one row fails to be deleted.

    You found a bug! We've classified it as EXTJS-27605 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1

    Default Deleting multiple rows doesn't work properly if one row fails to be deleted.


    I'm using ExtJS and REST proxy where every record has to be send to the server to be deleted on its own.

    Issue explained:
    1. we send 2 rows to be removed
    2. ExtJS sends 1st row to the server and operation succeeds.

      At this point ExtJS has a bug as onBatchOperationComplete is listening to operationcomplete event and as the first operation completed the proxy just assumes that all the operations were finished. Which is clearly wrong as the second wasn't even send yet.

      So because of that the event is forwarded down to onDestroyRecords which again can have a possible bug as records array contains only the first record, but function just assumes all operations were finished and executes the cleanRemoved.
    3. ExtJS sends 2nd row to the server and operation fails

      At this time the exception is called where I try to call the rejectChanges on the store. But as cleanRemoved was already called there is no row to be undone. And grid doesn't do anything.

    Now just a side note that removeFromRemoved was called already and the record is not part of the this.getRawRemovedRecords() anymore and also unjoined already so cleanRemoved doesn't do anything useful for the onDestroyRecords except causes a bug.

    Hopefully this is enough info to remove this bug. For me I'll try temporary do something in the onDestroyRecords to prevent calling cleanRemoved(), I just need to figure it out when it is really needed.


  2. #2
    Ext Support Team
    Join Date
    Jan 2018


    Hello Waldemar,

    Thank you for bringing this to our notice., I will register this in our bug tracker. A reference number will be attached here for you to track the progress of the issue.

    Sencha Support.

  3. #3
    Sencha Staff
    Join Date
    Sep 2017


    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. [OPEN] MODERN: Plugin MultiSelection for grids fails deleting multiple rows
    By pmanrubia in forum Ext JS 6.x Bugs
    Replies: 3
    Last Post: 14 Sep 2017, 3:41 PM
  2. Creating multiple draggable elements doesn't work properly
    By EvilOrange in forum Sencha Touch 2.x: Bugs
    Replies: 0
    Last Post: 2 Mar 2015, 6:34 AM
  3. Deleting multiple rows using check box from a grid
    By V Srinivasan in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 29 Oct 2010, 2:50 AM
  4. Replies: 1
    Last Post: 31 Jan 2010, 7:13 PM
  5. Replies: 12
    Last Post: 2 Aug 2008, 8:44 PM

Tags for this Thread

Posting Permissions

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