Skip to content

Grid Jumps to Top on Editor Cancel or Save #319

User947222 opened this Issue Apr 4, 2012 · 1 comment

1 participant


I am using a fairly simple, ajax-sourced grid with autoedit off.
When the user is done editing the grid jumps back to the top.
This seems to be due to the setFocus() function, which calls $canvas[0].focus().
Although this code is called multiple times before cancelling or saving the edit,
it is only at this point that the grid jumps back to the top.

This occurs with Firefox and Chrome, but not internet explorer 9.

Any help would be greatly appreciated.


I realised what the problem was - I needed to call grid.resizeCanvas() after dataView.setItems(data).

@User947222 User947222 closed this Apr 5, 2012
@mleibman mleibman added a commit that referenced this issue Apr 14, 2012
@mleibman Fix #302 and #319 (though the user seems confused about his own bug r…

- Use a fixed position (i.e. always on screen) hidden DIV as a focusable keyboard event sink, and focus on that instead of the grid canvas.  Since it is always in the viewport, no scrolling occurs.  We still listen to events from editors bubbling up to the canvas and set focus on canvas clicks.
- Exposed a "focus()" method on the grid.
- Got rid of IE's .setActive() call since we have a better mechanism now.
- Fixed "fast" arrow key navigation when asyncEditorLoading is on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.