Bonjour,

How to hide columns dynamically ?

this code doesn't work
Code:
var cols = grid.columns;
cols.each(function(column){
     column.hide();
}
==> Error : column.hide is not a function
In API doc, the function hide() exists for column.


this code has no error but the columns are still visible
Code:
var cols = grid.columns;
cols.each(function(column){
          column.hidden = true;
}

EBS