Results 1 to 2 of 2

Thread: combo deselect event

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    37

    Default combo deselect event

    I filter grid on combo select event. However when I delete everything from combo field and "tab" away, nothing happens. Select event is not trigered which is not big surprise. Still, I need to execute same function when user empties combo text field.

    I tried using change event, but it is fired to often, and not useful because filter makes sense only when value is selected.

    Is there something like "deselect" event for combo field?

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    585

    Default

    In your case you could use the blur event.

    Generally in a scenario like this I'd use the change event. To get around the problem of it firing too often I'd just compare the current value to the values in the store and only filter the grid if it's a valid value.

Posting Permissions

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