Thanks Sven.
I was looking into implementing a isColumnVisible(int columnIndex) method,
and your suggestion makes this quite easy.
On Wed, Jun 4, 2014 at 1:53 PM, Sven Meier wrote:
> Hi,
>
> you can alter the list of columns you have passed to the DataTable
> constructor:
>
> new DataTable
Hi,
you can alter the list of columns you have passed to the DataTable
constructor:
new DataTable(id, columns, ...);
onConfigure() {
columns.clear();
columns.addAll(...);
}
onClick() {
target.add(dataTable);
}
Regards
Sven
On 06/04/2014 12:20 PM
Hi all,
Is there a way to change the visibility of one or more columns of a
DataTable during an ajax refresh?
The only way I've found so far is to create a new list of columns and
replace the DataTable but this is a bit cumbersome compared to simply
writing ajaxRequestTarget.add(dataTable);
Mari