Re: Hook for hiding columns of DataTable?

2008-08-06 Thread Igor Vaynberg
this is on my list for 1.5, in 1.4/1.3 it would require too many api breaks i think. for now you can just replace the datatable with a new instance. the only state you have to carry over is the current page, so its pretty easy. -igor On Wed, Aug 6, 2008 at 9:45 AM, Ladislav Thon <[EMAIL PROTECTE

Re: Hook for hiding columns of DataTable?

2008-08-06 Thread Ladislav Thon
I've managed to "solve" similar problem by 1. setting a specific CSS class on each column, both in th and td tags (this can be done by overriding getCssClass() method of AbstractColumn) 2. setting a specific CSS class on the table when some columns should be hidden (this can be done e.g. using an

Hook for hiding columns of DataTable?

2008-08-03 Thread Jeremy Thomerson
I've perused the source and can't find an easy way to do this. I'm hoping that maybe someone else has done it. In an app for one customer, I have a table that lists parts that could be purchased. It is a subclass of DefaultDataTable. I pass it in a custom sortable data provider that wraps a lis