DataGrid doesn't show data in TabLayoutPanel

318 views
Skip to first unread message

James

unread,
Jan 17, 2013, 12:34:27 PM1/17/13
to google-we...@googlegroups.com

I have following questions:
 (1). DataGrid doesn't show data in TabLayoutPanel

DataGrid creates a HeaderPanel that has three components for header, footer, content (see lines 80 to 111 in HeaderPanel.java GWT 2.5). These three components are represented by three html "div" as indicated by the following screen shot from Firebugs. The content "dive" is initialized to 0 for its height.




When DataGrid is added into SimpleLayoutPanel, content height is changed into 260px as indicated by the following screen shot so DataGrid show data as expected. During debug in Eclipse, I can not catch any api call to change height.




When DataGrid is added into a ScrollPanel that is added into TabLayoutPanel, DataGrid doesn't show data. In Firebugs, I can not see any height change, which is still 0. If I change the height in Firebugs, DataGrid shows data.

(2). I have a large GWT project,  I can see an icon "Web app launch view activator" at lower right corner of Eclipse". This icon is much often running to prevent my Eclipse running normally. It displays a few line of messages every couple of seconds and gains focus in IDE. It is so distracting during debug. Is there some way to get rid of this problem?


I appreciate your help.


James

Faith

unread,
Jan 22, 2013, 1:39:01 AM1/22/13
to google-we...@googlegroups.com
Is the tab containing DataGrid selected on load or should the user click the tab to display the Datagrid.

If it is the second scenario try invoking 

yourdatagrid.OnResize() on tab selection.

HTH.
Reply all
Reply to author
Forward
0 new messages