PDA

View Full Version : readOnlyCls for numberfields + checkbox



Moinsen
16 Apr 2012, 5:56 AM
Hi,

i try to set readOnlyCls in numberfield and checkbox but it has no effect?! It works for textfield!
This ist my css:



.csm-disabled input, .csm-disabled textarea, .csm-disabled div{
color: black !important;
background-image: none !important;
background-color: #E0E0E0 !important;
}

And this is the definition in ext js:



{
xtype: 'textfield',
fieldLabel: 'Name',
name: 'name',
readOnly: true,
readOnlyCls: 'csm-disabled',
allowBlank: true
},{
xtype: 'numberfield',
fieldLabel: 'number',
name: 'totalLicenses',
readOnly: true,
readOnlyCls: 'csm-disabled',
allowBlank: true
},{
xtype: 'checkbox',
fieldLabel: 'Demo',
readOnly: true,
readOnlyCls: 'csm-disabled',
name: 'demo',
allowBlank: true
}

This is in 4.07, any ideas? Thank you!

scottmartin
20 Apr 2012, 2:09 PM
This has been corrected in 4.1

Regards,
Scott.