문제

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.
도움이 되었습니까?

해결책

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).

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top