Skip to main content

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