This is a migrated thread and some comments may be shown as answers.

Weird scroll position issue: Click horizontal scrollbar goes to top

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cheryl
Top achievements
Rank 1
Iron
Cheryl asked on 06 Mar 2018, 12:52 AM

Has anyone come across anything similar to this?

We've got a completely dynamically generated grid, complete with frozen columns and the ability to edit individual specific data fields within a row just by clicking on it.  This all works, just giving you some background.

One of the fields opens a window where you can add/edit/delete records separate to the grid (ie different the cell editing above), however on closing the window the grid updates, refreshing to take into account the newly added/changed record which was saved via the window.  This also works fine in that the grid, even on it being refreshed, maintains its scroll position.

The odd behaviour that we're experiencing is that if at the row you clicked on to open the window is at the bottom for instance, after the window has been closed and the grid refresh (still looks to maintain the scroll position at this point), then clicking on the horizontal scrollbar (either the bar itself or the arrow button) will scroll the grid to the top.  This happens in Chrome, FF or Edge, but does not happen in IE11.

Has anyone experienced anything similar?

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Cheryl
Top achievements
Rank 1
Iron
answered on 07 Mar 2018, 09:50 PM

UPDATE:

Firstly, I note that the scrolling to the top behaviour was unrelated to coming back from a window as I found it also happened just by changing the sort order or something along those lines as well.

I don't know at this point whether the issue was due to a combination of having a dynamic grid + frozen columns + ability to edit individual cells but I fixed the behaviour by setting AllowKeyboardNavigation=False.

Tags
Grid
Asked by
Cheryl
Top achievements
Rank 1
Iron
Answers by
Cheryl
Top achievements
Rank 1
Iron
Share this question
or