PDA

View Full Version : Disable collapse/expand buttons in FieldSet



NotChris
22 Mar 2011, 9:20 AM
I would like to be able to remove the display of the expand/collapse buttons in the FieldSet but have not figured out from the existing forums how to do this. I am able to hide the borders as specified below but not either hide or remove the expand/collapse buttons. I see these defined in .x-tool but not sure how to access this to change them. I only want to do this in this one case of the fieldset. I will be adding/removing widgets to the fieldset so I do want the capability of expanding/collapsing the fieldset on my own events.



final private FieldSet fieldSet_ = new FieldSet();
fieldSet_.setCollapsible(true);
fieldSet_.collapse();
fieldSet_.setStyleAttribute("border", "none");


Thanks.

micgala
23 Mar 2011, 12:59 AM
Have you tried fieldSet.setCollapsible (false) ?