Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * All field in a FormPanel to readOnly
- * @param {Ext.form.FormPanel} form
- * @param {boolean} readOnly
- * @returns {void}
- */
- formReadOnlyAllFields: function(form, readOnly){
- Ext.suspendLayouts();
- form.getForm().getFields().each(function(field) {
- field.setReadOnly(readOnly);
- });
- Ext.resumeLayouts();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement