v.2 Extended grid bug? - Invisible column
Hi,
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,
BT
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,
BT
November 21,