I have used something like this below, perhaps hook it when you need it.
var cols = [];
$.each(
$('#grid_id).jqGrid('getGridParam', 'colModel'),
function () {
if (!this.hidden) {
cols.push(this.index);
}
);
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS