PDA

View Full Version : GridPanel not showing rows when initially hidden and Store is loadedI recently upgrad



pdavid
1 Oct 2009, 11:29 AM
I recently upgraded from 2.0.2 to 3.0. I did not write the original code and Iím familiar with Ext-JS but am not an expert.
Several problems are present. My biggest issue now is that we have a GridPanel which is displayed in an Ext.Window. The Window is hidden to start with. The GridPanelís store is loaded at page load time. Pressing a button on the screen shows the Window.

In 2.0.2, it worked just fine. In 3.0, the loading of the Store is not creating rows in the Grid when the grid is hidden. If I put in hack code to show the hidden window at page load time (before the Store is loaded), the Grid works fine.

Does anyone have any insight or pointers?

pdavid
2 Oct 2009, 10:09 AM
Calling:

myGridPanel.getView().refresh(true)

when my window is shown works around this issue for me. (Although I still have problems with column renderer -- I'll save that for another post)