Results 1 to 2 of 2

Thread: How to listen for the grid losing focus?

  1. #1
    Sencha User
    Join Date
    Feb 2013
    Vote Rating

    Default How to listen for the grid losing focus?

    I have an editable grid (using cell editor) that I want to listen to an event to once the user leaves the grid, either through tabbing out of it or clicking elsewhere in the page. I know how to make the blur event fire in the columns, but I want to do that for the overall grid panel.

    I see that Ext.grid.Panel has a blur event, but I can't seem to make it fire.

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Boise, ID
    Vote Rating


    I'm afraid the grid component doesn't actually fire the focus and blur events (you'll see it documented, but as an anomaly of grid extending from AbstractComponent). You'll have to set up key event listeners for any tab key event and a click listener on the document / viewport and check to see if the event happened within the grid's containing element or not.

Tags for this Thread

Posting Permissions

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