Is this possible? Programmatically selecting a column (element) for display

I am looking for a method to dynamically enable/disable a column (in a List) for display.

I can do this in a form using the javascript facilities associated with each element.

But I need the same facility in the List display, so that when I 'hide' an element (some condition is satisfied) I also want to hide it in the List column display.

Is this at all possible?

The only method that I can see is to unpublish the column in the list (i.e. in List setup), or to set the access rights for that column. But the required display is not to be conditional on a user attribute, but rather on a selected data state/condition).

Any ideas?

Alastair
 
Does this have to happen real-time or just during list load?

For the former it would have to be a custom template. An If statement would decide the condition which in turn decides whether to display the element. They'll probably needs to be a few other tweaks in regards to the number of columns etc.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top