I'm stoked to try out SlickGrid. I've been using jqGrid for a while,
and although it was pretty easy to get started, it feels bulky and
it's difficult to customize. Starting with SlickGrid I love that
there's just a solid model core on top of which I can build a View.
So I have an example going like Example 4 (
http://mleibman.github.com/
SlickGrid/examples/example4-model.html), and I get how to do
filtering, pagination, use the dataView, and add/remove rows.
Now I want to do some ajax so I only load the first 20 rows (out of
100,000 for example), and as you page it can load say 1-x pages at a
time (eager loading perhaps).
From looking at the example code however, it doesn't look like this
fits in very easily.
The main thing is, I need to be able to set the `totalCount` (or
`totalRows`), but that's baked in to the `recalc` method which happens
every `dataView.refresh()`. Meaning I can't get 20 records out of
100,000 and start paging; paging only works if everything is loaded at
once.
Then there's the Ajax/Digg example (
http://mleibman.github.com/
SlickGrid/examples/example6-ajax-loading.html), which does what I'm
talking about, but it doesn't use the DataView. But the DataView is
such a nice class :), don't really want to start over with that haha.
What's the status with this? Is the DataView just an example class
you whipped together, or is it becoming part of the core? Do you
recommend I add to the DataView to basically integrate that Ajax
example functionality for pagination (RemoteModel + DataView), or
should I just ignore the DataView?
That was the one nice thing about jqGrid, it handles this in the
background no problem. Hoping it's pretty straight forward to do this
in SlickGrid. Any tips?
Best,
Lance