1. #1
    Sencha User
    Join Date
    May 2012
    Location
    bangalore
    Posts
    60
    Answers
    4
    Vote Rating
    0
    bluemvj is an unknown quantity at this point

      0  

    Default 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

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Location
    England
    Posts
    135
    Answers
    11
    Vote Rating
    7
    george.m is on a distinguished road

      0  

    Default


    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:

    Code:
    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); 
        }
    });
    http://www.sencha.com/forum/showthre...ge-event/page2

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    574
    Answers
    34
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default


    Does this happen onAfterShow too?

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi