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