ASPxClientCardView.SortBy(column) Method
Sorts data by the specified data column’s values, and places the column to the specified position among the sorted columns.
Declaration
SortBy(
column: ASPxClientCardViewColumn | number | string,
sortOrder?: string,
reset?: boolean,
sortIndex?: number
): void
Parameters
Name | Type | Description |
---|---|---|
column | string | number | ASPxClientCardViewColumn | An ASPxClientCardViewColumn object that represents the data column. |
sortOrder | string | A string value that specifies the column’s sort order (‘ASC’, ‘DSC’ or ‘NONE’). |
reset | boolean |
|
sortIndex | number |
Remarks
The ASPxCardView allows data sorting by multiple columns. Any previous sorting is not cleared if the reset parameter isn’t set to true
. The newly sorted column is inserted at the specified position within the collection of sorted columns. Its position within the collection can then be changed using the CardViewColumn.SortIndex property.
To sort column values in ascending or descending order, set the sortOrder parameter to ‘ASC’ or ‘DSC’, respectively. To clear sorting, set this parameter to ‘NONE’.
Sorting is allowed if the ASPxGridBehaviorSettings.AllowSort property is set to true
.