Sort Data in Card View
ASPxCardView data can be sorted by an unlimited number of columns.
To enable the sorting feature, set the column’s GridDataColumnSettings.AllowSort property to true
. If this property is set to Default, the column’s behavior is controlled by ASPxCardView’s ASPxGridBehaviorSettings.AllowSort option.
Note
By default, ASPxCardView does not sort a column if its data items do not implement the IComparable interface. To sort these columns, you can do one of the following.
- Manually implement the IComparable interface for column data items.
- Implement custom column sorting: set the column’s GridDataColumnSettings.AllowSort property to
true
, set the GridDataColumnSettings.SortMode property to Custom, and implement a custom sorting algorithm within the ASPxCardView.CustomColumnSort event handler.