I’m trying to use Listgrid with complex datasource.
Each cell of my grid must display a random number of box with multiple line(Room,Training Title,Begin hour,Trainee list).
Example :
Room 419
Gwt lesson
john Doe1
John Doe2
…
I know that its look like a calendar but this "calendar must display data for different trainer.
Representation is defined by :
Column : Trainers
Row : Day
For one day and one trainer we could have multiple box(as described before).
I’ve looked the Multiline Values and the GridCellWidget example and I’ve tried to make a mix of these examples.
In each cell I display data in a VerticalLayout.
This data is an Html flow with span for texte.
This flow is stored in a HtmlPane and the pane is included in the vertical layout.
Data is displayed,but there is a problem with cell height.
I use this code in order to support multiline cell :
I’m seeing this same issue. Did you ever figure out how to deal with it?
I’m creating an HTMLFlow as the record component in a ListGrid. I’ve set the two values as indicated above (WrapCells & FixedRecordHeight), and like the previous post, the content is displayed but the row height does not change to accommodate it. This causes it to cover cells above and below it.
Try upgrading to the next nightly build. There have been a lot of fixes and enhancements to cell widgets subsystem, including one just today that corrects an intermittent issue frozen columns.
I just replaced the 2.2 jar with the 2.3 jar in the Eclipse project build path and ran. I’m still seeing the issue. Is there something else that needs to change in order to use the new version?
If not, then I guess that didn’t fix it. It’s not a critical feature for me right now. So I’m not going to worry about it. Thanks for your help.
Not sure where you downloaded from, but nightly builds are here, and the full set of installation steps are here. Please let us know if you still have a problem after upgrading to a nightly, ideally, by posting a runnable test case.
Is your listGrid showing frozen columns?
We have a known limitation whereby frozen columns are not supported in conjunction with “virtualScrolling” (required for variable height recordComponents).
If you do need to embed consistently-sized record components in a ListGrid with frozen columns, we’ve just added a new method “listGrid.setRecordComponentHeight(Integer height)” which causes the listGrid to render all rows tall enough to accommodate recordComponents of the specified height, and is supported in conjunction with frozen columns. (This method will be present in our next nightly build).
If you’re not showing any frozen columns but you’re still seeing bad sizing behavior with recordComponents we’d be interested in seeing a test case (Ideally standalone example code we can drop into an entry point class and run on our end to reproduce the problems you’re seeing)