Results 1 to 4 of 4

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

  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    102
    Vote Rating
    0
      0  

    Default 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 User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Redwood City
    Posts
    30,758
    Vote Rating
    81
      0  

    Default

    That's how inputs in HTML work.

    If you want the select event, use the select event.
    Longtime Sencha engineer. Now surplus to requirements apparently...

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    102
    Vote Rating
    0
      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 User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Redwood City
    Posts
    30,758
    Vote Rating
    81
      0  

    Default

    The startValue property of the field is what you want to look at. This will be documented in the next release.
    Longtime Sencha engineer. Now surplus to requirements apparently...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •