I have a grid with edit mode set to 'inline'.
It has a remote dataSource with only the transport 'read' options set.
I am looking for a way to close a row edit (similar to closeCell, but for a whole row) in the grid , without the grid attempting to update the dataSource.
THE PROBLEM:
At the moment, if I call saveRow, a dataSource sync is attempted, but fails and the grid remains in edit mode. If I call cancelRow, the updates are lost from
the grid.
The sync fails as no transport 'update' option is specified in the dataSource. I do not want to specify the transport update, create and destroy options, as I
want to perform my own updates, rather than have the dataSource do this. I want to maintain the updates in the grid (with red triangles to say which cells are dirty), and then manually post these to my server at the appropriate time, rather than have the dataSource do this immediately.
So when the user clicks the row's "edit" button the whole row must go into edit mode, the user captures the data and clicks the "save" button.
I want to
1. visually take the row out of edit mode,
2. still show the red triangles for the data that is dirty,
3. raise an event that the grid row has been committed.
4. A separate class can subscribe to this event and be responsible for saving the dirty grid data.
5. We will use Signal R to notify database changes to the client, which will refresh these changed rows in the grid and remove the red triangles.
I am having problems with points 1 and 2.
Any help would be appreciated. Thanks.
It has a remote dataSource with only the transport 'read' options set.
I am looking for a way to close a row edit (similar to closeCell, but for a whole row) in the grid , without the grid attempting to update the dataSource.
THE PROBLEM:
At the moment, if I call saveRow, a dataSource sync is attempted, but fails and the grid remains in edit mode. If I call cancelRow, the updates are lost from
the grid.
The sync fails as no transport 'update' option is specified in the dataSource. I do not want to specify the transport update, create and destroy options, as I
want to perform my own updates, rather than have the dataSource do this. I want to maintain the updates in the grid (with red triangles to say which cells are dirty), and then manually post these to my server at the appropriate time, rather than have the dataSource do this immediately.
So when the user clicks the row's "edit" button the whole row must go into edit mode, the user captures the data and clicks the "save" button.
I want to
1. visually take the row out of edit mode,
2. still show the red triangles for the data that is dirty,
3. raise an event that the grid row has been committed.
4. A separate class can subscribe to this event and be responsible for saving the dirty grid data.
5. We will use Signal R to notify database changes to the client, which will refresh these changed rows in the grid and remove the red triangles.
I am having problems with points 1 and 2.
Any help would be appreciated. Thanks.