O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic grid: numbered rows, re-orderable columns

The GXT Grid component can be complex to new users, especially with its bells and whistles turned on. However, we can demonstrate a very basic and intuitive usage, one that can be grasped even by GXT beginners.

It turns out that working with Grids basically boils down to working with a list of ColumnConfig objects (the columns) with which to make a ColumnModel which is in turn used alongside a ListStore (contains the data) to construct Grid.

Basic grid: numbered rows, re-orderable columns

How to do it...

Create a ColumnModel object from a list of ColumnConfig objects and then create a ListStore to hold the data intended for the grid. The grid can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required