No event is triggered when I change the page size from the page sizes dropdown (upstream bug) #1446
-
I have written a custom backend, inspired by ODataService, which I need for a custom pagination scheme that I use with my backend service. Here are the gridOptions
Here is the
and here is the HTML side
The versions are
Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 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.
@MirwaisAkrami hi there, I know it's been over 6 months but it turned out that @zewa666 also started using the same library and had the exact same problem. @zewa666 did manage to find a way to fix this issue for good in this Slickgrid-Universal PR and it will be available soon in the next version of Angular-Slickgrid (probably 8.12.2 or 8.13.0). The end result of the troubleshooting found that the external library
ngx-dropzone-wrapper
really caused the problem by adding some monkey patch code on top of the native JS events (that is a bad idea, they really shouldn't do that, but they actually do) and that caused a problem in here. So in the end, it was really confirmed to be an issue cause…