Friday, August 27, 2010

Re: GWT and grid in 2.1 ?

Hi,

How can i get the source code for 

Regards
Deepak

On Fri, Aug 27, 2010 at 8:08 PM, Thomas Broyer <t.broyer@gmail.com> wrote:
 

On 27 août, 15:31, Gilles B <gilles.broch...@gmail.com> wrote:
> Using GWT 2.0 there no pleasant grid controls provided (compared to
> classic SmartGWT, GWT-Ext...). So I include the FixedWidthFlexTable,
> FlexTable, ScrollTable... updated widgets from google gwt-incubator
> project. This is not perfect but these controls provide fixed header
> and footer (during scroll), a basic column sorting, etc.
>
> What about these old widgets in new 2.1 version? Documentation says
> "new GWT's Data Presentation Widgets" but there is no detail. Is it
> possible to try and replace the old incubator classes using a new
> Widget in the current Milestone ? is there some documentation
> available or is it too soon to try it ?

See https://wave.google.com/wave/waveref/googlewave.com/w+nGKCcZzyA
The JavaDoc can be found at
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/cellview/client/package-summary.html
(at the time of writing, they still represent something between M2 and
M3, I hope they'll update them soon; if you use Maven, then you'll
find the up-to-date ones as maven artifacts)
A live example can be seen here http://gwt-bikeshed.appspot.com/Expenses.html

Note that the CellTable doesn't (yet?) support fixed header/footer/
columns, and you'll have to provide your own "sortable header" (the
code for the sample is in the SVN repo, so you should be able to copy
their headers and sorting handling)

That being said, I'm constantly fighting against sortable grids, as
they IMO generally are a sign of a lack of good search support (that's
of course not always the case: sorting items by price to be able to
compare them is a valid use case for sortable grids, but it doesn't
mean it should be implemented as a clickable header and/or generic
"sortable table widget").
As for fixed headers, I think in many cases there shouldn't be any
header at all, and the row data be understandable without them. But
again, there are valid use cases for headers (and fixed headers really
should be easier to achieve in browsers!), and I have no doubt that
you have valid reasons for searching such widgets.
(I often cite GMail as a good example of both "no need for sort" and
"no need for headers")

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment