Home › Forums › Guriddo jqGrid JS › Help › detect the displayed columns after column chooser submit
I use columnChooser in my application, and everything works perfectly. I have defined function in gridComplete event to get the number of columns in the grid.
gridComplete: function() {
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