Weird scroll position issue: Click horizontal scrollbar goes to top

2 posts, 0 answers
  1. Cheryl
    Cheryl avatar
    20 posts
    Member since:
    May 2013

    Posted 05 Mar 2018 Link to this post

    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

     

  2. Cheryl
    Cheryl avatar
    20 posts
    Member since:
    May 2013

    Posted 07 Mar 2018 in reply to Cheryl Link to this post

    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.

Back to Top