No event is triggered when I change the page size from the page sizes dropdown #1446
Replies: 3 comments 7 replies
-
have you tried |
Beta Was this translation helpful? Give feedback.
-
First of Second, I didn't add separate events for everything, that would be way too many and the only available event with the Pagination Service is In my custom Pagination Component, I'm calling the Pagination Service directly from simple bindings on the buttons and the dropdown, there's no reason to go crazy with creating a load of events that will never be used. So anyway, the bindings for the page size dropdown of Slickgrid-Universal is here and all the bindings are listed here. If you follow the call stack, it then goes and calls the Pagination Service .changeItemPerPage() which has a default argument of So we just have to look at the code to answer your question, and this is true for most projects. You might say that of course I know the project so I know it by heart, but the reality is that I did go in the code to answer your question, which anyone can do. 😉 |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response @ghiscoding. I tried all the ways you suggested, and went through the code, but to no avail. The pageSize dropdown triggered the pagination event, so I don't know what may be the problem in my own project. There are no fancy things going on, just a simple angular 17 project, but I think somehow the bound event is prevented to be triggered. Can you think of any possible cause of this issue, as to why is the select option changed even been silenced. Another issue that I mentioned earlier as well, is that I cannot render a complex object that is, if I want to show user.firstName, it wont work. Thank you. |
Beta Was this translation helpful? Give feedback.
-
I have written a custom backend, inspired by ODataService, which I need for a custom pagination scheme that I use with my backend service.
Everything works well, except for the pageSize change.
I want an event to be triggered when I change the page size from dropdown, but nothing happen.
Here are the gridOptions
Here is the
getTransfersCallback
methodand here is the HTML side
The versions are
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions