Added pagination style "infinite"#121
Conversation
- Added the ability to use fetchers that do not implement a count() method. The property "paginationStyle" as suggested in EvHaus#120 must be set to "infinite" to allow fetchers without a count method. - Added the option "infinitePageSize" to control the amount of data that should be retrieved an each scroll event. If undefined defaults to the amount of rows that fit into one viewPort page - Modified some checks, so the fetchers without count methods can work without having placeholders in the table
|
I tried to add the "infinite" pagination style as i need it. I'm using it together with a Backbone collection as a data source and it works out pretty well for me. I did not test groups and variable row heights yet. |
There was a problem hiding this comment.
Don't forget to remove this console.log
|
From your comments: I'm not really sure if this solution fit's the doby-grid projects general needs at all. Maybe it would be best to start again for this feature with the knowledge you have about the code and especially the dependencies that methods and features have to each other. For example i'm also experiencing that this changes won't really work well with sorting. After sorting and a successfull fetch the results of this fetch won't be displayed anymore. I feel like i'm kind of tangled up with the code for this feature. (I added some further changes locally but it's rather getting worse). |
|
No problem. I'll keep this PR open so I can use it as a reference for what you're after when we start working on the feature. |
a count method.