-
25 Jan 2013 12:10 AM #1
Unanswered: Selectfield onChange Event Firing in Show Method
Unanswered: Selectfield onChange Event Firing in Show Method
I have 3 selectfields however i added a listener for the first selectfield like below, In the show method in controller
this.getMainPage().down('#depField').on({
change:this.onChange,
scope:this
});
for the selectfield now the problem is onChange function is executing because i added in show method how to solve this problem. I don't want to execute this function without being changing anything in the selectfield
-
25 Jan 2013 1:17 AM #2
I had the same problem and I found this bit of code on the forum that fixed it for me, see if this helps you. The thread is below the code:
http://www.sencha.com/forum/showthre...ge-event/page2Code:Ext.define("Ext.ux.touch.select.ItemSelectedAddOn", { override:'Ext.field.Select', onListSelect:function(item, record){ var me = this, oldVal = me.getValue(); me.callParent(arguments); me.fireEvent('itemselected', me, me.getValue(), oldVal); } });
-
25 Jan 2013 1:51 AM #3
Does this happen onAfterShow too?


Reply With Quote