This repository was archived by the owner on Jun 1, 2025. It is now read-only.
onPaginationChanged event of Pagination service not found in latest version(4.1.4) #973
Answered
by
ghiscoding
meta-shubham-joshi
asked this question in
Q&A
|
In version 2.17.11 we used to have onPaginationChanged event in pagination service but in version 4.1.4 not able to see this event. So, what is the alternate or substitute for this? Also, i have found some similar subscribe events like processOnPageChanged(pageNo, event) event but not sure about this. Please help me out. |
Answered by
ghiscoding
Aug 1, 2022
Replies: 3 comments 1 reply
|
all events are still in place, the only difference is that they are Custom Events now and the arguments might be in a different place in the event. I just tried and it works (onPaginationChanged)="paginationChanged($event.detail)"paginationChanged(args: ServicePagination) {
console.log('paginationChanged', args);
}is giving this console log paginationChanged {pageCount: 105, pageNumber: 2, pageSize: 5, pageSizes: Array(8), totalItems: 525, …}You should take a look at the Grid & DataView Events Wiki |
0 replies
Answer selected by
ghiscoding
|
Yes it works. Thanks for the immediate response.
…On Mon, 1 Aug, 2022, 7:29 pm Ghislain B., ***@***.***> wrote:
all events are still in place, the only difference is that they are Custom
Events now and the arguments might be in a different place in the event. I
just tried and it works
(onPaginationChanged)="paginationChanged($event.detail)"
paginationChanged(args: ServicePagination) {
console.log('paginationChanged', args);
}
is giving this console log
paginationChanged {pageCount: 105, pageNumber: 2, pageSize: 5, pageSizes: Array(8), totalItems: 525, …}
You should read the Grid & DataView Events
<https://github.com/ghiscoding/Angular-Slickgrid/wiki/Grid-&-DataView-Events#example-with-custom-event>
Wiki
—
Reply to this email directly, view it on GitHub
<#973 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ2GEXROYMLL2XDWZDS4W63VW7J4XANCNFSM55HCFIUA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
|
1 reply
|
Yes I have taken clone of your project and seen the info.
…On Mon, 1 Aug, 2022, 8:12 pm Ghislain B., ***@***.***> wrote:
I forgot to also mention the alternative would be to use Grid State
<https://github.com/ghiscoding/Angular-Slickgrid/wiki/Grid-State-&-Preset>
which also has that info
—
Reply to this email directly, view it on GitHub
<#973 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ2GEXQRETNEEMDI5FS365TVW7O4RANCNFSM55HCFIUA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
all events are still in place, the only difference is that they are Custom Events now and the arguments might be in a different place in the event. I just tried and it works
is giving this console log
You should take a look at the Grid & DataView Events Wiki