ListGrid Tracking cellStyle

Hello,

if a ListGrid is set to send all changes to the server, then all modified cells get displayed differently, so the user can see what has been changed.
This is a nice feature.

If a ListGrid is set to saveByCell, every modification gets sent to the server (each row is sent to the server with all changes).
But changed cells do not get marked as changed anymore. This is a pitty, since we want to use this mode, but we loose funcitonality.

Is there a way to get the display of mode in point 1 in the data mode of point 2?
Our server just stacks up all changes and only saves everything to the database after an explicit save command. So it would be nice if the user could still see all the changes before the save button is pressed.

We do not want all changes to be sent at one to the server (as in point 1) since the network is quite slow, and we fear long wait times. Also if everything is sent at once to the server, there is no intermediate logging of the user actions.

Can the display style of the changed cells be modified?

Regards,

Luc

I think you just want autoSaveEdits:false, in which case all changes are kept on the client until you explicitly save them via saveAllEdits().

No I don’t. This will make a request to the server for each modified row.
How does the server know when the last row has been submitted?

autoSaveEdits:false will not initiate any automatic saves. When you call saveAllEdits(), all rows will be saved - these are a single HTTP request if you are using the SmartClient server, otherwise, yes they are separate requests.

In either case you can use the saveCallback argument to saveAllEdits() to receive notification when the last row has been saved.

You can also save row-by-row, also with a callback, via saveEdits().

Note also this approach if you are not using the SmartClient Server and want to submit all your changes at once.

If i would need to change the tracking style when autosave is off, which style do I need to modify.
Can I set the style name that is used to indicate changes in the ListGrid myself?
Is there a specific css style with a fixed name that I should modify, or is this part of the skin?

Hi Luc,

Take a look at listGrid.editPendingBaseStyle and listGrid.editPendingCSSText