You need to sign in to do that
Don't have an account?

How do I callapse PageBlockSection by default on Page or by Controller?
Sorry, my original text is missing for some reason...... (user error I suspect!)
I have searched for an answer to this and found no solution. My understanding is that on a normal SF page, it remembers at the user level if the user wants a section open or closed by default. This works for me on normal pages. On VisualForce pages this functionality does not work.
But what I would really like is to either set a parameter on my VF page so that permanently sections are closed by default. Alternatively have it possible to manipulate the state of the section via the controller.
Message Edited by GerhardNewman2 on 11-06-2008 01:57 PM
Example:
Just note that the argument to "getElementById" is the actual SF rendered element ID, and may change if your page composition changes.
HTH!
Jeremy
All Answers
Example:
Just note that the argument to "getElementById" is the actual SF rendered element ID, and may change if your page composition changes.
HTH!
Jeremy
My VF page code looks something like this:
there is some databound action that is called on button click. But aftre AJAX action, the data is refreshed alright in datatable, but the SECTION is now Not Enclosing the datatable .. :( .. I mean, Collapsing or opening the Section Does not Show and Hide the datatable content ..
can you help me in here too ... ?
It would be nice to have this feature natively.
If you want too, please help to promote this ideia:
http://ideas.salesforce.com/article/show/10098227/Add_Collapsedtrue_option_to_ltapexpageblocksection