-
29 Jul 2010 8:49 AM #1
Problem with this.findParentByType('panel') within listener
Problem with this.findParentByType('panel') within listener
Hello,
I would like to know how I can find the parent and then find a field with an itemId
I have seen the examples in the api, but it returns undefined in firebug?
Thanks, RichardCode:Ext.ns('Gebruiker'); Gebruiker.Form = Ext.extend(Ext.form.FormPanel, { ... {xtype: 'checkbox', name:'nieuwwwoord',itemId: 'nieuwwwoord',disabled: !wwdisabled, listeners:{check: {fn: function(){ var win = this.findParentByType('panel'); console.log(win); //var ww = win.getComponent('wwoord'); if(this.getValue() === true){ //ww.setDisabled(false); ....etc
Similar Threads
-
Ext.Component.findParentByType (supporting inheritance seach)
By plalx in forum Ext 3.x: User Extensions and PluginsReplies: 1Last Post: 7 Apr 2011, 1:03 AM -
[FIXED-812] Ext.Component.findParentByType does not find derived xtypes
By Tom23 in forum Ext 3.x: BugsReplies: 8Last Post: 20 Jul 2010, 9:09 AM -
trying to add a panel via a Listener
By JoomlaMan in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 15 Apr 2008, 10:37 AM


Reply With Quote