Gets a value, indicating whether the specified column can be sorted.
Namespace: MindFusion.DataViews
File: GridModel.js
JavaScript Copy Code |
---|
function columnSortable (column) |
Number. The column index.
Boolean. True if the specified column can be sorted, otherwise false.
The following code checks if the first column in a grid's model is sortable:
JavaScript Copy Code |
---|
if(grid.model.columnSortable(0)) { //do something } |