Set visible columns of UITable

General questions regarding the development with JVx.

Set visible columns of UITable

Postby johnit » Wed Nov 29, 2017 3:35 pm

How can I change the visible columns of a table?

I want to hide some columns.
Posts: 23
Joined: Fri Nov 16, 2012 5:58 pm

Re: Set visible columns of UITable

Postby rjahn » Wed Nov 29, 2017 3:39 pm

Simply set the column view:

Code: Select all
                                          new ColumnView("NAME", "TYPE" ));

It's also possible to set

Code: Select all
databook.getRowDefinition().setColumnView(null, new ColumnView("NAME", "TYPE" ));

because null sets the default column view. If you set a specific class, only the column configuration for the specific class type will be set.
Posts: 32
Joined: Sun Sep 13, 2009 1:54 pm

Return to Development