GridColumnSortableSettingsTagHelper
Example
Razor
<sortable>
</sortable>
Attributes
| Attribute | Type | Description |
|---|---|---|
| allow-unsort | Boolean | If set to true the user can get the grid in unsorted state by clicking the sorted column header. If set to false the user will not be able to unsort the column once sorted. |
| compare | String | The name of the JavaScript function which is used to compare the values. The compare function works only when server sorting is disabled. |
| enabled | Boolean | Determines whether the column is sortable. If set to true, the column will be sortable. If set to false, the column will not be sortable. |
| initial-direction | String | Determines the inital (from un-sorted to sorted state) sort direction. The supported values are asc and desc. |