Focusing first row of GridPanel

  1. #1

    Focusing first row of GridPanel

    Hi!

    I would like to make my GridPanel as keyboard-compatible as possible. I have a HeaderFilter plugin that applies the filters when the user hits Return in any of the textboxes. Now this is the moment when I would like to set the input focus on the first row of the grid so the user can conveniently navigate among the rows using the arrow keys (I have other functions attached to row keypresses).
    I saw focusRow and selectRow, but neither worked for me. Does it matter from when these are invoked?
    I greatly appreciate your help!

    Thanks
  2. #2
    Yes, in some cases delay is required, you can wrap focusRow in setTimeout with small delay (for example, 100 ms)

    In any way, to understand why it is not worked in your case, we need a test sample
  3. #3
    Thanks, I'll try it and get back if it isnt solved.

Similar Threads

  1. Replies: 1
    Last Post: Jul 11, 2013, 10:45 PM
  2. Replies: 4
    Last Post: Jul 04, 2013, 6:32 AM
  3. addRecord not focusing after LoadMask completes
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Feb 26, 2009, 4:11 PM
  4. focusing a row in gridpanel having paging
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 12, 2009, 10:54 AM

Tags for this Thread

Posting Permissions