Update DataGrid after line delete

The OOTB DataGrid component has an UPDATE and DELETE functionality (pencil and trash icons).

When deleting a row with the trash icon, the row stays there in the UI even though the DELETE has succeeded in the back-end. How do I update the DataGrid component to reflect the change (removed row)?

This seems to be an issue in you CRM template as well, at least from what we can see on the Youtube presentation.

This is not an issue with the UPDATE (pencil icon) as the data is locally modified before being sent to the API.

What would be the most “low code” way of updating the local data on a row delete and refresh the DataGrid UI?

thanks :slight_smile:

Gabriel

Hello Gabriel,

Thank you for your message. We will set the same behaviour for the delete action than the update. We don’t know when, but it will be add

Meanwhile, you need to refetch the collection after the delete and your datagrid will reflect the change

1 Like