Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Datagrid and CellTable in GWT

What is the difference between the Datagrid and Celltable?

I know that following major differences

  1. Datagrid provides RequiresResize.onResize() functionality while celltable does not give this
  2. Datagrid headers are fixed and do not move while scrolling the content. But i want to know is this much difference is enough that they made a whole new widget.
like image 436
Mani Avatar asked Feb 17 '23 19:02

Mani


2 Answers

Yes, those and other differences make the need of a new widget.

DataGrid is thought to be included in a ProvidesResize hierarchy (Layout panels), and it explicitly requires to set a fixed width when you dont put it in a ProvidesResize widget.

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

like image 164
Manolo Carrasco Moñino Avatar answered Mar 11 '23 00:03

Manolo Carrasco Moñino


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

We choose DataGrid as it plays well with responsive design with scroll appearing nicely tucked into grid instead of outside. I do feel CellTable is redundant.

like image 40
appbootup Avatar answered Mar 11 '23 00:03

appbootup