PDA

View Full Version : How can I hide the grid?



zjumty
20 Sep 2007, 7:49 PM
ext : 1.1.1
browser : firefox 2

When I called the grid.getGridEl().hide(), only the border and headerPanel of grid was hide. the grid data did not hide.

How can I hide the whole grid?

catacaustic
20 Sep 2007, 10:24 PM
This depends on where you've got the grid in your page and exactly what you want to hide.

For "normal" cases, you don't actually hide the grid itself. You hide the panel that the grid is on. How to do this will vary depending on your layout and what components the grid is laid out on.

If you want to hide the total grid itself, the only thing I can think of is setting the CSS on the grids HTML element to "display: none; and this should hide the entire grid. (I haven't checked this in production yet, so it might not...)