-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paging over local data not working #199
Comments
I think if you take a look at the simple example, you should find what you need. This uses locally paged data. |
I tried out the simple example and I've seen the documentation that notes the pagination plugin should default to enabled with a pagingType of 'local', however, this appears to be having issue. I find that if the PAGER plugin is not specified as enabled then no paging toolbar shows up. If I try |
@laurenga I am experiencing the same issue. The PAGE_LOCAL action was dispatched properly but page did not seem to move as expected. Below is my code: // |
@bencripps I did more digging in the documentation and source code. My question now is: in local data mode, is stateKey required when dispatch action PAGE_LOCAL? I guess not because no parameter is reserved for it. In this light, how is local grid identified then? A bit confused |
export const setPage = ({ index, type, BUTTON_TYPES }) => { is this the reason that the next button on local data does not work? I tried to solve this myself however I didnt understand what this reducer does, its different from how I normally make reducers in redux |
I built the demo code locally, changed the 'pagingType' of the PAGER to 'local' and set a 'pageSize' of 5. When I ran the modified demo the 'local' pager doesn't work. The grid only shows the first page of data.
The text was updated successfully, but these errors were encountered: