Hey,
I posted before about my problems getting data to display after moving from
CellTable to DataGrid. I investigated some more. I can get the data to
display in the DataGrid when the DataGrid is in the first tab. Switching it
to the second tab, the DataGrid appears empty with only the title
displaying.
I removed all bells and whistles from the layout and this is what is
working :
<ui:style>
> .layoutpanel {
> border: 1px solid red;
> min-widht: 400px;
> }
> .tablayoutpanel {
> border: 1px solid green;
> }
> </ui:style>
> <g:LayoutPanel ui:field="container" height="300px"
> addStyleNames="{style.layoutpanel}">
> <g:layer>
> <g:TabLayoutPanel barUnit='PX' barHeight='30'
> height="250px" addStyleNames="{style.tablayoutpanel}">
> <g:tab height="100%">
> <g:header>history</g:header>
> <c:DataGrid ui:field='table' height="100%" />
> </g:tab>
> <g:tab height="100%">
> <g:header>actions</g:header>
> <g:HTMLPanel>
> <g:Anchor href="#" ui:field="newTicketAnchor">actions
> </g:Anchor>
> </g:HTMLPanel>
> </g:tab>
> </g:TabLayoutPanel>
> </g:layer>
> </g:LayoutPanel>
While exactly the same layout but the order of the tabs swichted is NOT
working
<g:LayoutPanel ui:field="container" height="300px"
addStyleNames="{style.layoutpanel}">
<g:layer>
<g:TabLayoutPanel barUnit='PX' barHeight='30'
height="250px" addStyleNames="{style.tablayoutpanel}">
<g:tab height="100%">
<g:header>actions</g:header>
<g:HTMLPanel>
<g:Anchor href="#" ui:field="newTicketAnchor">actions
</g:Anchor>
</g:HTMLPanel>
</g:tab>
<g:tab height="100%">
<g:header>history</g:header>
<c:DataGrid ui:field='table' height="100%" />
</g:tab>
</g:TabLayoutPanel>
</g:layer>
</g:LayoutPanel>
Any ideas ?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/pybBKvbkhhEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.