Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid Moves to New Position after Sort. Scroll Position Resets after Sort. #1348

Open
ghost opened this issue Jan 24, 2017 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Jan 24, 2017

The scroll position of the grid changes after sorting an embedded grid. This phenomenon was observed when sorting a grid that was embedded in a grid and when the embedded grid was in the last row of the outer grid. The outer grid scrolls to a new position on sort of the inner grid; this is probably due to the last row being redrawn.

In List.js, "_applySort" calls "refresh()". In "refresh()" the scroll position resets with "this.scrollTo({ x: 0, y: 0 });".

Commenting out "this.scrollTo({ x: 0, y: 0 });", at the bottom of refresh(), prevents the scroll.

This image describes the scenario:
image

"Sys Integration" is the value of the Title field of the last row. There is a grid embedded in the Room Access field of the last row. When the "Room" field of the embedded grid is clicked (for the purposes of sorting that column), the "this.scrollTo({ x: 0, y: 0 });" in List#refresh() causes the outer grid to scroll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants