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

getData vs. getCurrentPageData #29

Open
palur76 opened this issue Nov 12, 2021 · 1 comment
Open

getData vs. getCurrentPageData #29

palur76 opened this issue Nov 12, 2021 · 1 comment

Comments

@palur76
Copy link

palur76 commented Nov 12, 2021

Hello!

I'm a bit confused... I have a table with 292 rows, paginated by 10 rows per page. table.getData() returns 10 objects, and table.getCurrentPageData() returns 10 too. If I search in the table, and I get 7 results, both functions return 7 objects. As I read in the documentation, getData() should get all data fro the table, getCurrentPageData() only the current page, I hope, understood it well.

My original problem is, that I'd like to copy all data from the table, if without search, them my 292 rows, if the search results 7, then this 7 rows. I hoped to do this with table.getData(), or am I wrong?

Thanks.

@MarcoHaase
Copy link

                            (this.getData = function () {
                                var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : this._outLe;
                                return n._isMounted ? n._dataset.top(e) : [];
                            }),

replace this will help you to get all Data. e.g.
table.getData(-1)

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

No branches or pull requests

2 participants