General Information
.NET Subscription
Desktop
Web
Controls and Extensions
Mainteinance Mode
Enterprise and Analytic Tools
Quality Assurance and Productivity
Frameworks and Libraries
All docs
V19.2
General Information
.NET Subscription
Desktop
Web
Controls and Extensions
Mainteinance Mode
Enterprise and Analytic Tools
Quality Assurance and Productivity
Frameworks and Libraries
19.2
19.1
18.2
18.1
17.2
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. |
Examples
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);
}
}
<dx:CardViewDateColumn FieldName="SomeDate">
<PropertiesDateEdit DisplayFormatString="u" />
</dx:CardViewDateColumn>
See Also
Feedback