0
votes

I have created a custom proxy with a custom reader and writer to interact with JSON documents in RavenDB. Loading and saving is all working well, except that the response for each update is not being handled properly. I can still see the red triangle (dirty?) in the corner of some grid rows after they have been successfully saved to the data base.

The response looks like this:

{Patched: true;}

I am familiar with the successProperty, but I am not sure if that relates here or how/where to set it. In the proxy? In the Model?

I suppose a less elegant solution would be to hook some event and call commit() on the record.

1

1 Answers

0
votes

it's in the proxy

proxy: {
    reader: {
        successProperty: 'Patched'
    }
}