You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm using the P-Select component in my project and I having a problem. I using it with a template function because I have a different filter written, and when I filter the data, it reassigns it to the array, but VirtualScroll works very slowly and doesn't detect the correct amount. I checked the event with lazy loading and it looks like this:
Older version prime work correctly :)
This is my function for filtering:
I use Prime: 19.0.6
UPDATE:
I think the problem occurs because VirtualScroll, after receiving new data, does not execute the function that checks the height and sets the scroll to the starting position. A similar problem occurs if, with the panel open, I scroll down and load different data. The "load more" button then gets lost. I'm not sure how to fix it, maybe it would be necessary to reload VirtualScroll when changes to the array are detected?
UPDATE:
I Found FIX :) When I init new array with obiect srcoll not set initState, so after I add new array i test InitState like: viewChildOfSelect.scroller?.setInitialState(), and that fix problem :)
Hello, I'm using the P-Select component in my project and I having a problem. I using it with a template function because I have a different filter written, and when I filter the data, it reassigns it to the array, but VirtualScroll works very slowly and doesn't detect the correct amount. I checked the event with lazy loading and it looks like this:
Older version prime work correctly :)
This is my function for filtering:
I use Prime: 19.0.6
UPDATE:
I think the problem occurs because VirtualScroll, after receiving new data, does not execute the function that checks the height and sets the scroll to the starting position. A similar problem occurs if, with the panel open, I scroll down and load different data. The "load more" button then gets lost. I'm not sure how to fix it, maybe it would be necessary to reload VirtualScroll when changes to the array are detected?
UPDATE:
I Found FIX :) When I init new array with obiect srcoll not set initState, so after I add new array i test InitState like: viewChildOfSelect.scroller?.setInitialState(), and that fix problem :)
This is example guys:
https://stackblitz.com/edit/btfk7upe?file=src%2Fapp%2Fselect-virtualscroll-demo.ts
For make error you must, open select, clicked load more, scroll down and click again load more:
I know this is not optimal fix but I dont have any more idea how fixed this :)
The text was updated successfully, but these errors were encountered: