This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

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: 45
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: 41
Joined: Sun Sep 13, 2009 1:54 pm

Return to Development