Skip to content
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

nz-table: cannot remain previous pageindex when dataSource changes #348

Closed
AlcheXie opened this issue Sep 21, 2017 · 2 comments
Closed

nz-table: cannot remain previous pageindex when dataSource changes #348

AlcheXie opened this issue Sep 21, 2017 · 2 comments

Comments

@AlcheXie
Copy link
Contributor

AlcheXie commented Sep 21, 2017

I'm submitting a...


[ ] Bug report  
[x] Feature request
[ ] Documentation issue or request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Support request => Please do not submit support request here

Current behavior

PageIndex will be 1 because forceRefresh is true when dataSource changes.

Expected behavior

I can decide if pageIndex is 1 or value before dataSource changes (like _buildIndexes() in nz-pagination.component.ts).

@vthinkxie
Copy link
Member

vthinkxie commented Sep 22, 2017

Yes, pr is welcome, just add nzIsPageIndexReset=true option, and replace this._generateData(true) to this._generateData(this.nzIsPageIndexReset) will be ok.

@lock
Copy link

lock bot commented Feb 19, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants