Sorting
Sorting can be either ascending or descending, represented by the enum SortDirection.
Disabling Sorting
To prevent sorting on a column, set the sortable property in the column definition to false:
var priceColumn = ColDef.builder(Entity_.price)
.sortable(false)
.build();
Grid using server side sorting
- sorting
Trade IDworks - sorting
Productis turned off - sorting
Portfoliois turned on in client, but turned off in server:Server throws exception - Source code for this grid available here
- Backend source code available here
Loading grid...
Absolute Sorting
Absolute Sorting orders numeric values by their magnitude, ignoring their sign.
Absolute sorting is enabled on the frontend by setting the column sort type to 'absolute' in AG Grid.
Loading grid...