-
3 Sep 2012 12:59 AM #1
Unanswered: Cannot get button by find field and name
Unanswered: Cannot get button by find field and name
Hello
I have an Ext.form.panel, and I can get its component by
this.getForm().findField('xxx').setDisabled(bool);
this.getForm().findField('yy').setReadOnly(bool);
but I cannot use findField for buttons which are direct children or children of an xtype: 'container' in the form
Thank you
-
3 Sep 2012 1:13 AM #2Sencha - Sales Team
- Join Date
- Mar 2007
- Location
- Melbourne, Australia (aka GMT+10)
- Posts
- 738
- Vote Rating
- 6
- Answers
- 10
why not use componentQuery built into formpanel to get items.
Code:allFields = form.query('field,button'); allFields.each(funtion(item,index,allfields) { item.setDisabled = true; item.setReadOnly = true; });
-
3 Sep 2012 1:50 AM #3
Hi Dawesi
Thank you for your answer but I would like to disable only some items


Reply With Quote


