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

sorting store to scroll to selected store #1292

Open
rpadmaja opened this issue Jun 27, 2016 · 0 comments
Open

sorting store to scroll to selected store #1292

rpadmaja opened this issue Jun 27, 2016 · 0 comments

Comments

@rpadmaja
Copy link

I am trying to scroll to selected row using onDemandGrid. I have a dgrid table which renders using default sort order value. I am trying to reorder the store using this sort order value, to estimate the index of selected result and scroll to that position. But i am wondering how i could sort the store based of dgrid sort order. I tried the below, but it always sorts in desc order instead of default sort order and gives the wrong estimate of index value
var sortedStore = this.dgridTable.store.query({}, {sort: this.dgridTable.get("sort")});

What could be the issue with above approach. Is there any robust way of performing the scrolling to selected row

@edhager edhager self-assigned this Aug 31, 2016
@edhager edhager removed their assignment Oct 30, 2017
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

2 participants