1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    India
    Posts
    56
    Vote Rating
    0
    raju0574 is on a distinguished road

      0  

    Question Answered: how to add event listener for a item like select field in sencha touch

    Answered: how to add event listener for a item like select field in sencha touch


    hi all,
    i have one item like this
    Code:
    items:[{ xtype: 'selectfield',
    						id:'sector',
                            name : 'mode',
                            label: 'Sector',
                            valueField : 'mode',
                            displayField : 'title', 
                            store : sectorStore,						
    						}]
    Now if i want to add a listener to that item what i have to do.
    whenever change is made in that item i wan to perform some action for that how can we do?

  2. If you check the API there is a "change" event that is fired just before the value is changed



    change
    ( Ext.form.Text this, Mixed newValue, Mixed oldValue )

    Fires just before the field blurs if the field value has changed.
    Parameters

    • this : Ext.form.TextThis field
    • newValue : MixedThe new value
    • oldValue : MixedThe original value

  3. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Answers
    102
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    The API describes the events for this type of input field.

    Have you checked it?

  4. #3
    Sencha User
    Join Date
    Aug 2011
    Location
    Mumbai, India
    Posts
    119
    Answers
    11
    Vote Rating
    4
    Sasha172 is on a distinguished road

      0  

    Default


    If you check the API there is a "change" event that is fired just before the value is changed



    change
    ( Ext.form.Text this, Mixed newValue, Mixed oldValue )

    Fires just before the field blurs if the field value has changed.
    Parameters

    • this : Ext.form.TextThis field
    • newValue : MixedThe new value
    • oldValue : MixedThe original value

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