Re: Dynamically changing column visibility on DataTable during ajax refresh

2014-06-04 Thread mscoon
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

Re: Dynamically changing column visibility on DataTable during ajax refresh

2014-06-04 Thread Sven Meier
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

Dynamically changing column visibility on DataTable during ajax refresh

2014-06-04 Thread mscoon
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