ASPxClientCardViewBatchEditApi.GetColumnDisplayText(columnFieldNameOrId, value) Method
Provides the text displayed within the cell according to the specified display format rule.
Declaration
GetColumnDisplayText(
columnFieldNameOrId: string,
value: any
): string
Parameters
Name | Type | Description |
---|---|---|
columnFieldNameOrId | 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.cardValues[column.index].value;
value.setMonth(6);
e.cardValues[column.index].value = value;
e.cardValues[column.index].text = s.batchEditApi.GetColumnDisplayText(column, value);
}
}
See Also