var colModel2 = grid.Columns().reduce(function(column){ return column.hidden? null: column; //column.hidden is true for hidden columns.});