Difference between Datagrid and CellTable in GWT

What is the difference between Datagrid and Celltable ?

I know that the following main differences

  • Datagrid provides the RequiresResize.onResize () function , while the cell table does not.
  • Datagrid headers are fixed and do not move when scrolling content. But I want to know if such a difference is enough that they created a completely new widget.
+4
source share
2 answers

Yes, these and other differences require a new widget.

It is assumed that the DataGrid is included in the ProvidesResize hierarchy ( layout panel ), and it explicitly requires you to set a fixed width when you do not put it in the ProvidesResize widget.

As you can see, in GWT for some things there are two implementations of the same widget, depending on the layout of the application (Basic or Layout panels).

+4
source

Your reasons listed are enough. They work the same way internally, and you can track google group discussions for more or less the same information - https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/PBhu6RtP4G8

We choose DataGrid, because it plays well with a responsive design with the appearance of a scroll, beautifully tucked into the grid, and not from the outside. I feel CellTable is redundant.

+4
source

All Articles