ASPxClientVerticalGridBatchEditApi.SetCellValue(visibleIndex, rowFieldNameOrId, value) Method
Sets the value of the specified cell.
#Declaration
SetCellValue(
visibleIndex: number,
rowFieldNameOrId: string,
value: any,
displayText?: string,
cancelCellHighlighting?: boolean
): void
#Parameters
Name | Type | Description |
---|---|---|
visible |
number | The visible index of the row that contains the processed cell. |
row |
string | A string value that specifies the field name or unique identifier (the column’s Web |
value | any | An object that contains the new cell value. |
display |
string | A string value that specifies the cell display text. |
cancel |
boolean |
|
#Remarks
Use the SetCellValue property to change the value of the specified cell when the latter is not in edit mode.
Note
The Set
- If the row’s Grid
Column property is set toEdit Form Settings. Visible false
. If the cell is in edit mode. It is necessary to use the ASPx
Client event handler to change the cell value:Vertical Grid. Batch Edit End Editing function onBatchEditEndEditing(s,e) { e.recordValues[rowIndex].value = newValue; e.recordValues[rowIndex].text = displayText; }