onPaginationChanged event of Pagination service not found in latest version(4.1.4) #973
-
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. |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
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>
|
Beta Was this translation helpful? Give feedback.
-
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>
|
Beta Was this translation helpful? Give feedback.
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