Search code examples
javagwtgxt

Can we have Tree Grid in GWT?


can we have the tree grid : Link to tree grid in GXT in GWT pure ? If not can I create the same component ?

Thanks.


Solution

  • you can do it with pure GWT. There is a very simple example in the GWT showcase page: http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomDataGrid

    in this case the "show friends" should be replaced by a "+" button or something similiar to the gxt.
    basically you have to extends the AbstractCellTableBuilder and user it with your daragrid: grid.setTableBuilder(tableBuilder); another basic example you can find here, its not a generic solution, but it works.

    i've used subrows in a datagrid before, and its okay, but as soon you want editable subrows you will get problems...