How to disable re-ordering for just one column #5784
-
Hey, Setting 'pointer-events' to none works great for the column X itself, however, other columns can still be dragged onto it. Any ideas? Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
minhhungit
Jun 12, 2021
Replies: 1 comment
-
To disable sort feature on a column, you can use attribute [Sortable(false)], for example: In your columns.cs [Sortable(false)]
public String Title { get; set; } Another way grid.ts: protected getColumns() {
var columns = super.getColumns();
let customerCol = Q.tryFirst(columns, x => x.field == "Customer");
if (customerCol) {
customerCol.sortable = false;
}
return columns;
} To fixed/frozen a column in grid, reference to this demo http://jlynch7.github.io/SlickGrid/examples/example-frozen-columns |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To disable sort feature on a column, you can use attribute [Sortable(false)], for example:
In your columns.cs
Another way grid.ts:
To fixed/frozen a column in grid, reference to this demo http://jlynch7.github.io/SlickGrid/examples/example-frozen-columns