Henryk
Posts: 63
|
| Posted: 10/31/2008, 8:33 AM |
|
I am interested in creating a grid with a lot of columns. My end users would have a checkbox with field name(column header) to choose which ones are visible. Is there a way to build this in ccs4? I imagine it would involve panels, but I have never used them and my initial attempts have been a bit dissapointing. Thanks!
Henryk
|
 |
 |
Gena
Posts: 591
|
| Posted: 10/31/2008, 10:42 AM |
|
Sure this is possible!
Just run Grid builder and set option "Add Panels to each column (for Hide/Show functionality)"
after you can hide/show any columns using Hide-Show Component action in before show event.
_________________
Gena |
 |
 |
Henryk
Posts: 63
|
| Posted: 10/31/2008, 10:52 AM |
|
I'll give it a try, thank you Gena!
|
 |
 |
Henryk
Posts: 63
|
| Posted: 10/31/2008, 11:05 AM |
|
I built the grid and it includes a search . Every field in the table is included. This is what I think I should do now, and please correct me if I am wrong. I will add the checkboxes into the search form and assign a value of true to checked and false to unchecked (although it may be better to create a seperate form somehow instead).
I will select the field itself (it does not appear like the panels can be selected) and do a before show event-> hide/show -> choose condition as equal. From here I am a bit muddy since I am not having luck finding detailed information on how to proceed. Am I close?
|
 |
 |
Henryk
Posts: 63
|
| Posted: 10/31/2008, 11:07 AM |
|
I am thinking I probably need to do the same thing for the header as I do for the data field as well.
|
 |
 |
Gena
Posts: 591
|
| Posted: 10/31/2008, 11:19 AM |
|
yes, it creates 2 pannel for each columns - for header and for TD with data.
So you need to "switch" both.
I before show event select (add) Hide-Show Component action, set it to Hide (or to Show, depends from you and initial state of column), as condition put something like this:
CCGetParam("your_checkboxname","")==1
or ==0 (see notes above)
soadd Hide-Show Component action 2 times (for Header and for TD).
_________________
Gena |
 |
 |