View Full Version : How to make a Readonly Checkbox & Combobox

19 Aug 2011, 1:52 AM
Hi All

I want checkbox to behave as readonly, so for that I made it as disabled, but due to this on form submission, checkbox value is not getting submitted.

I tried for readOnly config also, but its not working as expected, its not making checkbox as readOnly.

I also want the same behavior with combobox also.

Please let me know, how to implement this.


25 Aug 2011, 6:44 AM
Did you tried this one?

editable (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.Picker-cfg-editable) : BooleanFalse to prevent the user from typing text directly into the field; the field can only have its value set via selecting a value from the picker. In this state, the picker can also be opened by clicking directly on the input field itself.

Defaults to: true

25 Aug 2011, 6:45 AM

readOnly (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.Trigger-cfg-readOnly) : Booleantrue to prevent the user from changing the field, and hides the trigger. Supercedes the editable and hideTrigger options if the value is true.

Defaults to: false