I was wondering if there is any way to change the columns of a DataTable once
it has been declared.  On my page, I pass an IModel into a Panel that
contains my DataTable.  As the user users the page, the contents of the
model will change and I would like for that to affect which columns are
shown in the table.  The problem is that DataTables take an array of
IColumns (instead of a List, which could be manipulated after
instantiation.)  I would override the DataTable's getColumns() method to
return the appropriate columns but it is final.  Is there any
technical/design reason why getColumns() is final?  To me, it seems
unnecessary and is very annoying in an OO framework.

Does anyone know of any way I could make the columns in my table dynamic
without setting the visibility of <th>'s and <td>'s from inside my IColumns? 
Any help would be appreciated.

-Brandon
-- 
View this message in context: 
http://www.nabble.com/Dynamic-DataTable-columns-tp15142596p15142596.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to