Here's a sample of how you can use a buffered view to display large datasets.
Note that the js for the example code is not minified so it is readable. See bufferedview.js.