Thursday, March 12, 2015

Re: ScrollTable?


I'm not sure that's quite going to do what I need - I'm taking advantage of the FlexTable's ability to have a cell span multiple rows.  My table has four columns.  The first three are filled on create, but the data in the fourth column is dynamic and changes based on buttons (and spans multiple rows).  It doesn't look like the DataGrid can handle that.

Yeah sounds like DataGrid can't do that well. You can use custom table builders with DataGrid to customize the way the table is rendered but I am not sure if it fits your use case. A customized example is http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomDataGrid which can expand rows but showing friends and adds notification rows.

In your case you can probably just write your own table component that extends Composite and uses a FlowPanel to combine a header + ScrollPanel. Inside that ScrollPanel you put your FlexTable.

-- J.




--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment