Skip to main content

ASPxClientGridViewBatchEditChangesCancelingEventArgs.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

Example

This example illustrates how to use the updatedValues argument.

function onBatchEditChangesCanceling(s, e) {
    var updValues = e.updatedValues;
    for (var rowIndex in updValues) {
        for (var columnIndex in updValues[rowIndex]) {
            var visibleIndex = parseInt(rowIndex);
            var columnId = parseInt(columnIndex);
            var initialVal = grid.batchEditApi.GetCellValue(visibleIndex, columnId, true);
            var rateColumn, barColumn, templateColumn;
            if (columnId == rateColumnIndex) {
                rateColumn = grid.GetColumn(rateColumnIndex);
                SetColValue(visibleIndex, rateColumn, initialVal);
            }
            else if (columnId == barColumnIndex) {
                barColumn = grid.GetColumn(barColumnIndex);
                SetBarColValue(visibleIndex, barColumn, initialVal);
            }
            else if (columnId == templateColumnIndex) {
                templateColumn = grid.GetColumn(templateColumnIndex);
                SetHtmlTemplateColumnValue(visibleIndex, templateColumn, initialVal);
            }
        }
    }
}
See Also