SMART datagrid v.1 > Classes > GridDataSet

[ grids ver.1.3.8]   Back  Forward

DataLudi.GridDataSet.onValuesUpdating  event

It will be fired just before updating multiple rows by calling updateValues

If explicitly return Boolean false within this even handler, row updating will be cancelled. And, just after updating, onRowsUpdated event will be fired. 

function onValuesUpdating (ds: GridDataSet, where: String, newValues: [*]): Boolean;
Returns
Boolean
Parameters
ds - GridDataSet.
where - String.
newValues - [*].
Code -1
    ds.onValuesUpdating = function (ds, where, newValues) {
        if (!$('#updatable')[0].checked) return false;
    };
See Also
onRowsUpdated
updateValues
Examples
Grid Data Set Edit