I'm using ODataV4Adaptor as the data adaptor for grid for CRUD operations.
It needs to add additional headers in the http request, so the adaptor is extended and the beforeSend method has been overridden in order to modify request headers.
Then, if a Patch (update) request is initiated, the unchanged data in the row cell disappears.
Issue can be reproduced in below stackblitz sample.
However, if the overridden method 'beforSend' is commented out, grid works as expected.
Seeking support to solve this issue.
Thanks for contacting Syncfusion support.
In the shared sample, the reported scenario can be reproduced with or without the beforeSend customization. However, this has been working fine in our latest version 21.1.38. So please update your packages to the latest version to overcome the reported issue. Please refer to the below sample link for more information.
Please get back to us if you need further assistance.
I have upgraded the packages to the latest version (21.1.38). But issue still exists.
I am still able to reproduce issue. Please see below sample link.
While performing the PATCH update with OdataV4Adaptor, we need to return the modified entity to the client which will be updated to the current edited row. While sending the “Authorization” header, we could see that the response is 204-No content which is the cause of the issue. While using the default OdataV4Adaptor, you have returned the entity correctly which is why the row is updated properly. So please return the entity from the server to overcome the reported issue.