A colleague of mine implemented "frozen columns" by having two DataGrids. It was for a project at a previous job and can't share the code, but the implementation goes like this:
On Friday, September 2, 2016 at 2:09:39 AM UTC-6, Loo Bin Hooi wrote:
-- Create two DataGrids. One will have the frozen column(s).
Put them next to each other horizontally. The one on the left-hand side becomes frozen by having a fixed width (and therefore no horizontal scrollbar).
They share the same DataProvider (they just display a different set of columns of the same data) and Pager. Well, I don't remember if you can use the same Pager or have to synchronize between the two.
The tricky part is to synchronize scrolling through rows of data, but that only applies if you have more rows that can fit on the screen so that you have a vertical scrollbar. You can avoid this work if you have a set height and you only visualize more rows through paging.
(Shameless plug:) see these slides from my GWT.create 2013 presentation for other Cell-based Widget customizations:
http://www.slideshare.net/RogelioFlores2/tabular-data-with-gwt
On Friday, September 2, 2016 at 2:09:39 AM UTC-6, Loo Bin Hooi wrote:
I'm also curious about the findings about Frozen Column(s) for GWT datagrid.Any findings you can share?Thanks
On Wednesday, December 5, 2012 at 11:29:12 PM UTC+8, Joshua Godi wrote:Is it possible to have a frozen column inside a DataGrid? I would like the first column to always show no matter if the user scrolls right or not.Thanks
You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment