Skip to main content

ASPxClientGridViewBatchEditChangesSavingEventArgs.updatedValues Property

Gets a hashtable that maintains information about updated cells.

Declaration

updatedValues: any

Property Value

Type Description
any

A hashtable that stores information about updated cells.

Remarks

The updatedValues structure is a hashtable that maintains information about updated cells in the following manner:

updatedValues = {
  "0": {
    "1": {
      value: "someValue",
    }
  }
}
//Here, "0" is an example of the row visible index; "1" is an example of the column index specifying the corresponding cell

The following example illustrates how to iterate through e.updatedValues values.

function (s, e) { 
    for (var i in e.updatedValues) { // 'i' is a row index 
        const col = e.updatedValues[i]; 
        console.log(i + ': ');
        console.log(col);
        for (j in col) { // j is a column index
            const newColumnValue = e.updatedValues[i][j];
            const columnObject = s.GetColumn(j);
            console.log('The ' + columnObject.fieldName + ' column\'s new value is: ' + newColumnValue);
        } 
    } 
    e.cancel = true; 
}
See Also