How to track Changes of grid edit/delete/add operations

Posted by: technical.store.technical on 13 June 2021, 5:42 pm EST

  • Posted 13 June 2021, 5:42 pm EST

    Hi,

    We are facing one issue in order to track the add/delete/edit operations on wijmo grid.

    For this we have used trackChanges property and trying to fetch the details of add/delete/edit items using -

    this.data.itemsEdited, this.data.itemsAdded, this.data.itemsRemoved.

    But this is giving us a blank array.

    Snippet -

    https://stackblitz.com/edit/angular-bx2fkm?file=src/app/app.component.ts

    Please provide a solution for this.

    Regards,

  • Posted 14 June 2021, 2:58 pm EST

    Hi,

    Can you please help us with the solution.

    Thank you.

  • Posted 15 June 2021, 3:41 am EST

    Hi,

    This is the expected behaviour, track changes work only when edits are explicitly performed by the user during the edit operation or when using the editItem/addNew/commitEdit etc methods of the collectionView. Changes are not tacked when we make direct updates to the items like in the shared sample. In this case you need to push the items in the itemsEdited/itemsAdded manually after making the updates.

    Regards

    Sharad

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels