Re: How to show / hide individual column of a DefaultDataTable using Ajax?

2011-05-31 Thread Alec Swan
Hello,

I solved a similar problem by wrapping  in  and
hiding the container using setVisible(false).


  Visible To


Alec

On Thu, Jul 1, 2010 at 7:58 AM, Erich W Schreiner  wrote:
> Dear all,
>
> I'm trying to implement an Ajax button for showing / hiding some columns of a
> DefaultDataTable based on a Boolean associated with a custom session. 
> Currently
> I have implemented an AttributeModifier that sets the style to "display:none" 
> on
> the hidden columns.
>
> This is working fine for the table content (data rows) where I am adding this
> AttributeModifier to the cellItem, but not for the column headers. The 
> function
> getHeader() returns a Label that I can hide by adding the same
> AttributeModifier, but I do not know how to get to the  element itself.
> Effectively, I can hide the headers' label but not the header.
>
> Any suggestions, please?
>
> TIA & best regards,
> Erich

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to show / hide individual column of a DefaultDataTable using Ajax?

2011-05-30 Thread ramlael
I need som help with how to create an expandable row in a datatable. The 
idea would be to have functionality like an accordion where you click the 
table row and it expands to show more details of the object in the current 
row. 


U have mentioned "This is working fine for the table content (data rows) ",
Please can you provide the code?. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-show-hide-individual-column-of-a-DefaultDataTable-using-Ajax-tp2275208p3560116.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to show / hide individual column of a DefaultDataTable using Ajax?

2010-07-01 Thread Erich W Schreiner
Dear all,

I'm trying to implement an Ajax button for showing / hiding some columns of a 
DefaultDataTable based on a Boolean associated with a custom session. Currently 
I have implemented an AttributeModifier that sets the style to "display:none" 
on 
the hidden columns.

This is working fine for the table content (data rows) where I am adding this 
AttributeModifier to the cellItem, but not for the column headers. The function 
getHeader() returns a Label that I can hide by adding the same 
AttributeModifier, but I do not know how to get to the  element itself. 
Effectively, I can hide the headers' label but not the header.

Any suggestions, please?

TIA & best regards,
Erich