SMART datagrid v.1 > Examples

Back  Forward

Restore Updated Rows  Example

If specify DataSet.restoreMode as EXPLICT, you can call DataSet.restoreUpdatedRows to restore the updated rows as the prior value, and the state of the row as NONE

And, if set restoreMode as AUTO, when the values of the updated row are updated again as the prior values by the user or script, the state of the row will be automatically restored as NONE

Grid - 1
rows

After specifying restoreMode as "auto" or "explicit", you can directly update the value of the rows or click "Row Updating" button below to update the rows. And, you can update again as the prior value or click the restore buttons to do the test. 




Before updating restoreMode as "auto" or "explicit", you cannot restore the rows of UPDATED state. In order to provide the row restoration function to the user, you should specify restoreMode in advance when initialize the data set. 

Please refer to Data Row States example about the state of the data row, and State Cells example about how to display the state cell. 

View Source JSP 

See Also
DataRestoreMode
DataSet.restoreMode
DataSet.restoreUpdatedRows
DataSet.restoreUpdatedStates
Examples
Row Updating
Data Row States
State Cells