PDA

View Full Version : help to hide a fieldset



andryi
10 Aug 2009, 1:33 PM
Hi, I've got a problem with a fieldset,


{
xtype:'fieldset',
title: 'Group',
id:'frmGroup',
name:'frmGroup',
collapsible: true,
autoHeight:true,
bodyStyle:'padding:5px',
autoWidth:true,
hidden:true,
items :[...]
}


I have a FormPanel, and, inside of it, is the fieldset
so, If I run my application the fieldset is visible, but if I put this:


hidden:true

the fieldset is dissapear, until that,all is Ok, but, how I can do to show again the fieldset??

I try with this


frmInit.getForm().setHidden(frmGroup:false);


but Is wrong, any idea?

Animal
10 Aug 2009, 1:37 PM
Call show on it???

andryi
10 Aug 2009, 1:45 PM
I try to show the fieldset, but I don't know how, I think is similar to set value a textfield but I was wrong because my sentence, not works



frmInitgetForm().setHidden(frmGroup(false));

Animal
10 Aug 2009, 1:48 PM
Call its show method!

You are just typing random characters which look like code.

Get a reference to the FieldSet object. Call a method upon it.

You can use Ext.getCmp, or the ref config.

Read some example code from your examples directory. You have ~100 examples to learn from there. Also, read the API docs. Notglance at them. Read them top to bottom several times.