GWT CellTable with frozen header and start column

I need to freeze the first column and the first row of data in CellTable so that users can scroll through the data, but still see the labels on the β€œaxes”. The first column should scroll when the user scrolls up and down, and the title bar should scroll when the user scrolls left and right. Think "Stop Lists" in Excel.

I am using GWT 2.1 and am ready to write my own widget to do this if solutions no longer exist. My question consists of two partners:

  • Do any widgets already have this behavior?
  • Any suggestions if I am going to implement this myself?

Thanks!

+6
gwt widget
source share
2 answers

I have implemented the solution myself. Check out http://larkolicio.us/ScrollTable/ExperimentTables.html

This is a LayoutPanel with three Absolute Panels inside it. The frozen columns are CellTable, the main part is CellTable, and the heading is Grid - I could not find a way to set the width of the CellTable column! ScrollHandler connects the main part with two frozen parts. There is a bit of delay - I would appreciate it if someone could find a way to get rid of the lag between sections.

I earned to use it, and stopped. This is not a universal widget. Please feel free to use it at your own risk.

+5
source share

This implementation is pretty good. I just tested it. However, it needs some changes to support asynchronous loading. GWT Issue 188 , covering a similar request for improvement, was created in October 2006 ?!

Thanks for sharing.

0
source share

All Articles