[CLOSED] insert to grid store not showing red dirty flag

  1. #1

    [CLOSED] insert to grid store not showing red dirty flag

    Hi, Take your demo https://examples4.ext.net/#/GridPanel/Update/Batch/ as an example, I want to show red dirty flags when a new row is added to the grid. Not sure why it only show on update.
    Thanks
    -susan
    Last edited by fabricio.murta; Jun 27, 2017 at 1:51 PM.
  2. #2
    Hello @susanz!

    New records are not marked as edited because, when they are added to the store, they are added anew and there's no 'previous state' of the record. So there's no 'reject', and rejecting won't delete the record.

    To attain such a functionality you would (for example) have to add a blank record, then set the field values in it to the provided ones, then they will be showing the red arrow and reject button. But rejecting the changes will just move it back to a blank record. Then you can, during the rejection (both clicking the individual 'reject' buttons or by rejecting the whole set of changes), check for empty records and effectively delete them.

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Thanks Fabricio! That make sense. Please close this thread.
    Thanks
    -szhang
  4. #4
    Thanks for the feedback Susan! Glad it helped! Closing.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] set dirty flag
    By Z in forum 3.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 16, 2015, 12:18 PM
  2. [CLOSED] enable dirty flag for new row added to grid
    By susanz in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 07, 2014, 2:13 AM
  3. [CLOSED] GridPanel Store Sync doesn't update dirty flag
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 25, 2013, 9:59 AM
  4. Replies: 4
    Last Post: Sep 23, 2013, 11:18 AM
  5. [CLOSED] TreePanel remove dirty red arrow flag
    By jchau in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 09, 2013, 4:40 AM

Posting Permissions