PDA

View Full Version : allowDeselect on Ext.form.Select



art.home.ext
10 Feb 2011, 6:44 AM
I want to use an Ext.form.Select for a 2 values field (Men / Women).


{
xtype: 'selectfield',
label: 'Sx',
name: 'sx',
options: [
{text: 'Men', value: '0'},
{text: 'Woman', value: '1'}
]
}

How can I easily force Ext.form.Select.listPanel to have attribute : allowDeselect:false ?

Thanks