SMART datagrid v.1 > Classes > DataSet

Back  Forward

DataLudi.DataSet.restoreUpdatedStates  method

If it is the same as the stored value when check the state of changed row, it will return the state. 

Among the rows which are specified by parameter rows, if the values of UPDATED row is the same as the values stored before change, it will return the state as NONE. If do not specify rows, it will check all rows. 

function restoreUpdatedStates (rows: [Integer]|Integer);
Returns
Void
Parameters
rows - [Integer]|Integer.
You can specify one row number list, row number array or row number value which will be restored.
Code -1
    $('#restore').click(function () {
        // Restore from the selected rows.
        dataset.restoreUpdateStates(grid.getSelectedDataIndices());
        // Restore from all rows.
        dataset.restoreUpdateStates();
        // Restore one row.
        dataset.restoreUpdateStates(11);
    }
See Also
restoreUpdatedRows
restoreMode
strictRestore
DataRestoreMode
Examples
Restore Data Rows