1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    102
    Vote Rating
    0
    rojar is on a distinguished road

      0  

    Default why change event fired on combo blur not on item selection.

    why change event fired on combo blur not on item selection.


    Hi,

    I am using extjs combo. Registered for combo's 'change' listener.

    Code:
       change : ( Ext.form.Field this, Mixed newValue, Mixed oldValue )
    Problem is this change event is not fired when I select another item of combo. Only when combo focus is lost the change event is triggred.

    Change event works differently then select event in this regard. I need to get old and new selected values which is not available in select event.

    Can any one through some light.
    Thanks..

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    That's how inputs in HTML work.

    If you want the select event, use the select event.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    102
    Vote Rating
    0
    rojar is on a distinguished road

      0  

    Default


    Thanks for your reply.

    My issue is

    Basically on selection of new item I have to update UI which now is happening on blur and select event does not provides old value and new value as parameters to listener function. I will have to manage previous value set variable.

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    The startValue property of the field is what you want to look at. This will be documented in the next release.

Thread Participants: 1