Knockout-Contrib / Knockout-Contrib/KoGrid

Auto Scroll to selected row

Open
#215 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
277
Forks
124
PR merge metrics
No merged PRs in 30d

Description

Another cross post:
http://stackoverflow.com/questions/15226810/kogrid-auto-scroll-to-selected

"I want to use KoGrid to show a list of "assets" and have the same assets showing in a Google map. When the user clicks on the pin in the map, the corresponding asset in the list should be scrolled down to show it at the top. Bonus: don't do anything if it is already in view.

I've done this before on a different list and the interaction with sorting and filtering caused me problems for awhile (I had to re-figure out the index of the asset every time I sorted or filtered)."

I was able to get this working with the Wijmo Grid using some code from here: http://wijmo.com/topic/need-wijgrid-selection-object-to-remotely-select-row-and-force-scrolling-to-the-selected-row/ and several changes from that.
I'd like to move to KoGrid, since the knockout integration is much better (a refresh of one property, redraws the grid, and scrolls it back to the top in Wijmo, yours does not). I need this feature to make the full switch.

Thanks.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked Stack Overflow example and inspect KoGrid's selection and scrolling entry points. Reproduce a selected row being outside the viewport, including after sorting and filtering, then determine the existing grid behavior. Done means selecting an asset scrolls its row to the top when needed and does nothing when it is already visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.