PDA

View Full Version : [CLOSED] Migration Hiding columns



rmelancon
Jul 02, 2013, 7:17 PM
I have changed to what seems to be the new way but can't get any columns to show. They are all hidden by default and the code shows them.



var changeVisibleColumns = function(ms, value) {
var myheaderCt = <%= ResultGrid.Grid.ClientID %>.headerCt;
var myColumns = myheaderCt.getGridColumns();
myColumns[3].Hidden=false;
myColumns[4].Hidden=false;
};

Baidaly
Jul 02, 2013, 11:30 PM
Hello!

You should use show/hide or setVisible methods of the column:


App.ResultGrid.columns[3].hide();
or

App.ResultGrid.columns[3].setVisible(false);