Back to Devexpress

ASPxCardView.CustomGroupDisplayText Event

aspnet-devexpress-dot-web-dot-aspxcardview-5ee8102c.md

latest4.1 KB
Original Source

ASPxCardView.CustomGroupDisplayText Event

Enables you to provide custom content for group rows.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxCardViewColumnDisplayTextEventHandler CustomGroupDisplayText
vb
Public Event CustomGroupDisplayText As ASPxCardViewColumnDisplayTextEventHandler

Event Data

The CustomGroupDisplayText event's data class is ASPxCardViewColumnDisplayTextEventArgs. The following properties provide information specific to this event:

PropertyDescription
ColumnGets the data column that refers to the card currently being processed.
DisplayTextEnables you to set a custom text for the cell currently being processed. Inherited from ASPxGridColumnDisplayTextEventArgs.
EncodeHtmlGets or sets a value that specifies whether the cell display text keeps any of its values that are HTML as HTML, or instead, strips out the HTML markers. Inherited from ASPxGridColumnDisplayTextEventArgs.
KindGets the type of operations with grid data. Inherited from ASPxGridColumnDisplayTextEventArgs.
ValueGets the edit value of the cell currently being processed. Inherited from ASPxGridColumnDisplayTextEventArgs.
VisibleIndexGets the visible index of the data item (row, card or record) where the processed cell resides. Inherited from ASPxGridColumnDisplayTextEventArgs.

The event data class exposes the following methods:

MethodDescription
GetFieldValue(Int32, String)Returns the value of the specified data source field in the specified data item (row, card or record). Inherited from ASPxGridColumnDisplayTextEventArgs.
GetFieldValue(String)Returns the value of the specified data source field in the current data item (row, card or record). Inherited from ASPxGridColumnDisplayTextEventArgs.

Remarks

The card view enables you to implement your own logic to group rows, by handling the ASPxCardView.CustomColumnGroup event. In this instance, it may be useful to replace the default text displayed within group rows. To do this, handle the CustomGroupDisplayText event. The event arguments allow you to easily identify group rows and replace their display text.

See Also

CustomColumnGroup

Grouping Overview

ASPxCardView Class

ASPxCardView Members

DevExpress.Web Namespace