Results 1 to 2 of 2

Thread: How to listen for the grid losing focus?

  1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    8
    Vote Rating
    0
      0  

    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 - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,154
    Vote Rating
    249
      0  

    Default

    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.
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our human resources manager: fabienne.bell@sencha.com

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
  •