Is it possible to freeze last column to the right side of the grid?
All the demos that I came across shows freezing 1st or 1st & 2nd column to left side of the grid.
I tried using frozen:true
property to only last column in colModel, but its not working.
The current implementation of frozen columns in jqGrid don't allows to freeze last columns to the right side of the grid. So I don't see any simple way to implement your requirements in jqGrid.
The reason of the complexity is in the implementation of frozen columns in jqGrid. The method setFrozenColumns
examine colModel
from the left (from the first index of the colModel
array) at the beginning (see the part of the source code). It finds the max index of colModel
which have frozen: true
property and then makes the copy of the columns of the grid in the separate div. In other words jqGrid take in considerations only first columns of colModel
which have frozen: true
property. All other properties which have frozen: true
will be ignored. Then jqGrid creates always the div with left frozen columns only. So the usage of frozen columns on the right side of the grid not provided.