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

Giving details with RowExpander

RowExpander is one of the many plugins used to tweak the default behavior of a GXT Grid component. It adds an additional column to the said grid (it actually extends ColumnConfig) with a tiny button used to toggle an extra area placed underneath each row so that more data or content about each row in the grid can be placed in this extra area. The GXT Grid component was discussed in Chapter 7, Venerable Grid Component.

The RowExpander plugin employs the use of templates in the formatting of the data it renders, and while not a RowExpander requisite, we could use a ModelProcessor to prepare the data that will eventually be handed to the template.

How to do it...

Instantiate a RowExpander and then invoke its setTemplate() ...

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