I\'m trying to disable all clickable, editable components on my panel.
Calling panel.disable()
grays it out, but buttons are still clickable.
The same r
This is a better solution to disabling all form fields inside a form panel.
var formPanelName = Ext.ComponentQuery.query('#formPanelId field');
for(var i= 0; i < formPanelName.length; i++) {
formPanelName[i].setDisabled(true);
}
Just get a reference to the form panel fields. Iterate over each field and use the setDisabled function to set its readOnly attribute to true.
You can also take it a set further and grab the entire form Panel. This solution above only grabs individual sections of the form panel by its ID. extjs 4