TiVoShane
15 Oct 2007, 5:22 AM
I have a site with a menu on the left and I wanted to display a Grid when the user clicks on a menu selection. I have the grid wrapped into a DIV and I load everything up using the Ext.OnReady event. However, I don't want the grid visible when the main page shows up, I just want it visible when the user clicks on a menu link. How do I hide/show it? There is no setVisible method for the grid.
<div id="idUserDisplay"</div>
grid = new Ext.grid.EditorGrid('idUserDisplay',{
ds:store,
frame:true,
autoExpandColumn:5,
cm:cm
});
grid.render();
<div id="idUserDisplay"</div>
grid = new Ext.grid.EditorGrid('idUserDisplay',{
ds:store,
frame:true,
autoExpandColumn:5,
cm:cm
});
grid.render();