[CLOSED] Problem with modal window and focus

Page 2 of 2 FirstFirst 12
  1. #11
    This works: If user clicks an input field, focus stays on input field
    This also works: If user clicks in the space between controls, focus is redirected to a textfield, avoiding the problem of pressing tab and the controls outside of the window being focused.
    This is what i don't know how to do: If user clicks the grid, focus stays on the grid

    I would recommend to try a similar thing that I did with inputs.
    1

    if(!e.getTarget('input'))
    Sorry, i'm not sure i understand. How to apply this for a grid?
  2. #12
    Quote Originally Posted by josegarcia View Post
    Sorry, i'm not sure i understand. How to apply this for a grid?
    e.getTarget() returns a DOM element. You can analyze it is a GridPanel's element itself or a child element. You can use either raw DOM API or ExtJS API.
    http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.Element
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: Apr 20, 2012, 6:20 AM
  2. [CLOSED] Notification from modal window problem
    By xeo4.it in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 27, 2011, 6:53 AM
  3. [CLOSED] Modal Window Problem with lower Resolutions
    By webppl in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jan 28, 2011, 10:09 AM
  4. Replies: 0
    Last Post: Dec 25, 2009, 9:48 PM
  5. Modal window escape key problem
    By dbassett74 in forum 1.x Help
    Replies: 0
    Last Post: Apr 20, 2009, 1:00 PM

Posting Permissions