Sorting
Sorting can be either ascending or descending, represented by the enum SortType.
Disabling Sorting
To prevent sorting on a column, set the sortable
property in the column definition to false
:
ColDef priceColumn = ColDef.builder()
.field("price")
.sortable(false)
.build();
Grid using server side sorting
- sorting
Trade ID
works - sorting
Product
is turned off - sorting
Portfolio
is turned on in client, but turned off in server:Server throws exception
- Backend source code available here