O'Reilly logo

Vaadin 7 Cookbook by Ondrej Kvasnovsky, Jaroslav Holan

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

Reordering columns and rows in a table

It is very user-friendly if users can adjust components by themselves. One such component is a Table. There are situations where some users want to see the name of items in the first column, other users want to see IDs, other users want to see prices, and so on. In other cases, the user can set, for example, the priority of items by reordering rows. If the row is above, it has a higher priority. In this recipe, we will see how to allow a user to reorder columns and rows in a table.

Reordering columns and rows in a table

How to do it...

Carry out the following steps to allow reordering columns and rows in the Table:

  1. We create a Vaadin project with ...

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