PDA

View Full Version : extjs field set show when selecting checkbox



javapurna
23 Apr 2013, 3:22 AM
hi every one ,

how to field set show when checking checkbox. if user select checkbox only show field set(field set is there in collapsible:true ) .

slemmon
24 Apr 2013, 2:54 PM
I'm not sure I understand the question.
Does the example at the top of the API docs for fielset help?
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.form.FieldSet

javapurna
24 Apr 2013, 8:42 PM
sorry for my English slemmon.

in my form panel one checkbox is present. if i am selecting checkbox , field set will expand(initially field set in collapsed or collapsible mode ) . suppose IsMarried checkbox is selecting ,spouse info field set is expand

slemmon
25 Apr 2013, 3:20 PM
I'm sorry. I'm still not following what you're looking to do. Can you post an example with notes on what you're looking to do?

javapurna
25 Apr 2013, 8:43 PM
thanks slemmon,

i am providing screen shots. if am selecting isMarried expand like below image .
how to show field set initially rendering collapsed .
4336343364

slemmon
26 Apr 2013, 12:00 PM
To start the fieldset out as collapsed you can do collapsed: true
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.form.FieldSet-cfg-collapsed

You might also find this config of interest:
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.form.FieldSet-cfg-checkboxToggle