PDA

View Full Version : CheckboxToggle-Fieldset status



francesconigro
23 Apr 2012, 1:38 AM
Hi, I have a fieldset with checkboxToggle in Extjs 4:
...
id: 'fieldsetNuovaTecnologia',
columnWidth: .50,
xtype: 'fieldset',
title: 'Definisci Nuova Tecnologia',
checkboxToggle: true,
collapsed: true,
checkboxName: 'checkboxNuovaTecnologia',
...
How do I verify if it is checked or unchecked?

I tried with:

1) Ext.getCmp('checkboxNuovaTecnologia').getValue();

2) Ext.get('fieldsetNuovaTecnologia').dom.checked;

but don't work!

scottmartin
23 Apr 2012, 9:05 AM
You should be able to get the state using:



fieldset.checkboxCmp.value


Regards,
Scott.