PDA

View Full Version : Grid in tab not loading data properly!



dgildeh
21 Feb 2009, 3:37 PM
Hi

I've been stuck all day trying to fix this very annoying issue! Basically I am rendering a tab panel with 2 tab items, and in each tab item a grid which is loaded from the server using XML reader.

For some reason, the first tab shows the grid, but no data is loaded in it. The second tab shows the grid and is fully loaded. If I reverse the order of the tabs, the tab that is always second shows the grid loaded properly, the first one doesn't. Therefore I'm sure the grids work, but for some reason the first tab is not triggering a render event or something.

I am using the latest GXT1.2.3 with GWT1.5.3. Any help in this very annoying issue will be much appreciated! Structure of user interface is as follows (in case it helps:)

TabPanel
-- TabItem with ContentPanel with RowLayout
---- TabPanel with my 2 tabs for grids
------TabItem(1) - ContentPanel with FitLayout with grid that does not show
------TabItem(2) - ContentPanel with FitLayout with grid that does show data
------TabItem(3) - Test ContentPanel exactly same as TabItem(1) (same class) that does show data

David

dgildeh
22 Feb 2009, 10:07 AM
After trying to solve another problem (with Grid height extending below the tab item panel) I found that you need to set FitLayout() to all your TabItems for them to size everything below them propery.

When I fixed this problem, the first tab magically rendered properly! Hopefully other people won't waste 2 days because they forgot to set a layoutfor the TabItems!

DIONTX
23 Mar 2009, 9:56 PM
Hello. I searched high and I searched low. I tried for the last several weeks to resolve my problem but I guess I am just not seeing it. :((

As seen in the attachments, I am using the Layout Browser sample application with Ext JS 2.0 as the basis of my application. When a user selects 1 row from the Projects grid, the rest of the tabs are enabled. The user then clicks on the Budget tab to view the current budget for the selected Project from the projects grid. I have a listener on the tabBuget tab item which is suppose pass the select project ID and load the Budget tab item with the results from a query.

I can execute the process with no errors BUT I am not seeing the data in the Budget Grid. Yet I can see the results in my response as clear as day.

I tried to add the Grid Panel control to the tabBudget items, as suggested by Animal in another thread, and I tried various ways to load the Data Store and the grid. What do I do next?

Your assistance on this matter is greatly appreciate. If anyone can give me an answer to my question, I will be eternally grateful.

Thanks,

Dionicio
file:///C:/Users/Dionicio/Pictures/ExtJS_GridPanel_Load_1.png

jordan9527
24 Mar 2009, 7:56 AM
As Air Jordan 16 (http://www.air-jordan-sneaker.com/air-jordan-16-xvi/Nike-Air-Jordan-16(black-white).aspx) and Air Jordan 17 had the +’s and the Air Jordan 18 had the .5, the Air Jordan 19 would also have a modified version released on the market. Again a simpler design, but just as high a price tag.Air Jordan Release Dates. More info on Air Jordan 19 SE East Coast Edition (http://www.air-jordan-sneaker.com/air-jordan--19-xix/Air-Jordan-XIX-19-SE-East-Coast-Edition-basketball-shoes-(white-red-grey).aspx), Air Jordan XIX.

xbit
30 Mar 2009, 4:57 AM
After trying to solve another problem (with Grid height extending below the tab item panel) I found that you need to set FitLayout() to all your TabItems for them to size everything below them propery.

When I fixed this problem, the first tab magically rendered properly! Hopefully other people won't waste 2 days because they forgot to set a layoutfor the TabItems!

Thank you! Thanks to your post I got away with wasting only half a day on this issue. :)