PDA

View Full Version : Grid / GridCellRenderer issue



andrew.z
29 Sep 2011, 2:46 AM
Hi all.

Using a grid (com.extjs.gxt.ui.client.widget.grid.Grid) widget I face the following problem: I don't want its header to be displayed until all the data gets loaded to the corresponding ListStore. I tried calling setVisible(false) initially and calling setVisible(true) once the data is there (in LoadListener.loaderLoad(...) event handler). This seems to work ok but with one exception - if I have a GridCellRenderer setup for one of my grid's columns such that it returns not pure HTML code, but a widget that is itself a container containing other widgets. In this case this widget just doesn't get displayed at all.

I suspect that this is some kind of rendering issue - my widget container doesn't get rendered if the grid is not visible. Any ideas?

Thanks