Posted 30 November 2018, 4:48 pm EST
Hi,
I am trying to implement solution based on “Tracking changes with Customization” in https://demos.wijmo.com/5/Angular2/CollectionViewIntro/CollectionViewIntro/
I need to be able to get itemsEdited when I click save changes button.
The problem is that Tracking changes with customization works only when you change rows. Do you have solution that allows to get itemsEdited without changing rows where itemsEdited only contains items different from original?
Case1:
- Change row 1 cell value by typing in the cell.
- Click save changes button. Row 1 is not in itemsEdited collection. commitEdit is needed to get changes reflected in itemsEdited collection. commitEdit works if user never change rows. I can compare original row with changed row to determine if row should be removed from itemsEdited collection.
Case 2:
- Change row 1 cell value
- Move to row 2
- Change row 1 cell value back to original value
- Click save changes button
Row 1 is in itemsEdited collection. If I commitEdit then I loose track of original changes and can’t determine if row 1 should be removed from itemsEdited. If I save original of previous row I would be able to decide if row needs to be removed from itemsEdited but this means that I need to save originals for every rows that your solutions is trying to avoid.
thank you
