PivotGridSettings.FieldValueDisplayText Property
Enables the display text of individual column and row headers and filter dropdown items to be customized.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
PivotFieldDisplayTextEventHandler | A PivotFieldDisplayTextEventHandler delegate method allowing you to implement custom processing. |
Remarks
Handle the FieldValueDisplayText event to do the following:
- customize the display text of field values, total headers, grand total headers and data field headers;
- customize the display text of items within filter windows. In this instance, the PivotFieldDisplayTextEventArgs.IsPopulatingFilterDropdown property is set to true.
If the FieldValueDisplayText event is raised for a field value or total header, the Field parameter identifies the corresponding column field or row field. If this event is raised for a data field header, the Field parameter identifies the corresponding data field.
If the FieldValueDisplayText event is raised for a grand total header, the Field property returns null. To get the type of the processed header, use the PivotFieldValueEventArgsBase<T>.ValueType property.
If the FieldValueDisplayText event is fired for an item within a Filter Window, the Field parameter returns the column, row or filter field whose dropdown has been invoked.
To supply custom display text for a header or filter window’s item, assign the custom string to the PivotFieldDisplayTextEventArgs.DisplayText property.