ASPxClientGridViewBatchEditApi.GetColumnDisplayText(columnFieldNameOrId, value) Method
In This Article
Provides the text displayed within the cell according to the specified display format rule.
#Declaration
TypeScript
GetColumnDisplayText(
columnFieldNameOrId: string,
value: any
): string
#Parameters
Name | Type | Description |
---|---|---|
column |
string | A string value representing the column’s unique identifier or field name. |
value | any | An object representing a value. |
#Returns
Type | Description |
---|---|
string | A string value representing the cell’s displayed text. |
#Example
The following example illustrates how to use the GetColumnDisplayText property.
function OnBatchEditEndEditing(s, e) {
var column = s.batchEditApi.GetEditCellInfo().column;
if(column.fieldName == "SomeDate") {
var value = e.rowValues[column.index].value;
value.setMonth(6);
e.rowValues[column.index].value = value;
e.rowValues[column.index].text = s.batchEditApi.GetColumnDisplayText(column, value);
}
}
See Also