:: Forum >>

v.2 Extended grid bug? - Invisible column

I'm making a grid column invisible using the following code:

var header = myGrid.getHeaderTemplate(index);
var column = myGrid.getCellTemplate(index);

header.setStyle("display", "none!important");
column.setStyle("display", "none!important");

This works fine when the grid object is of type AW.UI.Grid.
However, when I use the extended grid (AW.Grid.Extended) the above code does not work any more. When the grid is initially rendered the column is not visible but then a fraction of a second later the column appears in the grid.

I'm aware that I can make columns invisible using css selectors like .aw-column-0 {display, none!important;}
but, I'd prefer not to use this method.

Has anyone else encountered this problem? Alex, is this intentional behaviour?

Thanks in advance,
Monday, November 21, 2005
Have you tried using setColumnIdices([0,2,3,4,etc...]);
It works for me in both Grid and Extended.
Monday, November 21, 2005
Cheers Alex...works a treat!
Monday, November 21, 2005

This topic is archived.

Back to support forum

Forum search