[CLOSED] Grid Focus

  1. #1

    [CLOSED] Grid Focus

    Hi,

    How can I detect when a gridpanel has focus?
    I want to select first row when the user use tab and the gridpanel is focused. But I don't know how to detect it.
    Last edited by Daniil; Mar 10, 2012 at 2:19 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Well, GridPanel has no Focus and Blur events.

    You could catch Tab key setting up the following KeyMap for the GridPanel:

    Example
    <KeyMap>
        <ext:KeyBinding>
            <Keys>
                <ext:Key Code="TAB" />
            </Keys>
            <Listeners>
                <Event Handler="alert('Pressed Tab');" />
            </Listeners>
        </ext:KeyBinding>
    </KeyMap>
  3. #3
    Ok, but if I can't detect focus I can not use it.

    Thanks
  4. #4

Similar Threads

  1. [CLOSED] Place focus in first row of grid
    By Pablo_Azevedo in forum 1.x Premium Help
    Replies: 8
    Last Post: Mar 23, 2012, 4:09 PM
  2. [CLOSED] grid row focus
    By speedstepmem4 in forum 1.x Premium Help
    Replies: 1
    Last Post: May 12, 2009, 1:18 PM
  3. [CLOSED] Grid Focus visible
    By speedstepmem2 in forum 1.x Premium Help
    Replies: 1
    Last Post: Apr 27, 2009, 3:58 PM
  4. [CLOSED] Focus removing on Grid
    By speedstepmem2 in forum 1.x Premium Help
    Replies: 1
    Last Post: Apr 27, 2009, 4:49 AM
  5. [CLOSED] Focus on first row in grid?
    By Jurke in forum 1.x Premium Help
    Replies: 14
    Last Post: Dec 18, 2008, 7:12 AM

Tags for this Thread

Posting Permissions