KOGrid uses virtual scrolling to render content dynamically. I'm looking for something like that but more generic so it could be used for ul
lists, Bootstrap rows, whatever. I saw something called giga-scroll, but I think it's gone now. The Git is dead.
Has anyone seen a custom binding for dynamic content via virtual scrolling?
A simple solution without using a custom binding:
Fiddler Example: http://jsfiddle.net/adrienne/Y2WUN/
Markup:
ViewModel:
A different solution using a custom binding scrolling the entire browser window:
http://figg-blog.tumblr.com/post/32733177516/infinite-scrolling-knocked-out.
Fiddler example: http://jsfiddle.net/8x4vG/2/
Use the binding like so:
With a View Model looking something like this:
The binding implementation:
I thought I would share some other scrollers I have found...
https://github.com/thinkloop/knockout-js-progressive-filter
https://github.com/thinkloop/knockout-js-infinite-scroll