Author Topic: Focus on Grid body  (Read 2197 times)

daverene

  • Newbie
  • *
  • Posts: 23
    • View Profile
Focus on Grid body
« on: June 02, 2017, 09:15:49 am »
How do I point the focus of the grid to the rows, after a button press in the toolbar (ie. focus to body of grid with no rows), I was then thinking of running a command similar to this to paste data which creates rows.

var e = jQuery.Event("keydown");
e.which = 86;
e.ctrlKey = true;
$("input").trigger(e);


I am guessing I would need to change this line to point the focus to the grid rows $("input").trigger(e); to something like this?  $("#grid_json_employeeBulk").pqGrid.trigger(e);
« Last Edit: June 02, 2017, 09:24:48 am by daverene »

daverene

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Focus on Grid body
« Reply #1 on: June 06, 2017, 03:51:54 am »
any idea? I am trying to do a paste event into the grid after pressing a button in the toolbar.