I know you can go one by one and disable sorting of columns. How can you disable it globally? Or is it simply impossible? Did I mention that this was an HTML table initially and converted to a jqgrid with the expansion function they have.
Thanks.
I know you can go one by one and disable sorting of columns. How can you disable it globally? Or is it simply impossible? Did I mention that this was an HTML table initially and converted to a jqgrid with the expansion function they have.
Thanks.
You can use column template. To set sortable: false
for all columns of jqGrid or just to set it as the default value for the sortable
property you can use
cmTemplate: {sortable: false}
as additional jqGrid option. If you use tableToGrid then you should just add the same option to the second parameter of tableToGrid
:
tableToGrid('#list', {cmTemplate: {sortable: false}});
UPDATED: I don't understand where you have any problem. Here you will find very simple demo which work. If you would click on any column header the grid will be not sorted.