Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Pagination - Delete a row #107

Closed
kbuchanan opened this issue Dec 4, 2012 · 0 comments
Closed

Pagination - Delete a row #107

kbuchanan opened this issue Dec 4, 2012 · 0 comments
Assignees

Comments

@kbuchanan
Copy link
Contributor

If you have Pagination enabled (Set to 2 pageSize for this example), and you have the ability to delete a record in the datastore, there's the following issue:

If there are 3 records total, and I go on the second page where only one record is displayed. If I click Delete and remove that record, I am stuck on the second page of the datalist with no records showing.

Ideally, if I delete the last record on the last page of a datalist, I will be sent back to the previous page.

I noticed it loses the items around here

2928            if (typeof this.pageIndex === "number" && typeof this.pageSize === "number") {
2929                limit = datalist.range.call(this);
2930                items = items.limit(limit[0], limit[1]);
2931            }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants