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

Not Preserving Pagination and Ordering after setData #70

Closed
ben-ward opened this issue Oct 12, 2015 · 5 comments
Closed

Not Preserving Pagination and Ordering after setData #70

ben-ward opened this issue Oct 12, 2015 · 5 comments

Comments

@ben-ward
Copy link

I'm using the BootstrapTable with the following options.

After I use setData the current page and any ordering is lost.

I could rerender the component if I had some way of passing the current page and ordering field via the options attribute. Is there anyway to get the current page or ordering?

Great work BTW. This was really helpful.

Thanks,
Ben

@02ps719
Copy link

02ps719 commented Oct 12, 2015

I have fixed this. Shall send in a pull request soon. Also fixed the an issue with search filter not filtering when setData was being used to add/edit/delete rows matching the search criteria.

@ben-ward
Copy link
Author

@02ps719 nice! that would be great

@AllenFang
Copy link
Owner

Thanks @02ps719's work :) 👍 and about @ben-ward's said, I'll think about how to get curr page and ordering, but if I give you some hook for page changing or data sorting and pass data which you want, maybe it's a good way to this enhancement.

@AllenFang
Copy link
Owner

HI all, this issue has been solved on v1.2.1 :)

@AllenFang
Copy link
Owner

About how to get current page and get ordering, can use the newest version and see CHANGELOG.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants