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
Printable View
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
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!
Thanks Fabricio! That make sense. Please close this thread.
Thanks
-szhang
Thanks for the feedback Susan! Glad it helped! Closing.