primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Listbox - lazy load data

Open alch3m1st opened this issue 8 years ago • 12 comments

I can't find it on the docs. It would be nice to be added as a feature.

alch3m1st avatar Mar 10 '17 15:03 alch3m1st

Do you mean loading more on demand via scrolling?

cagataycivici avatar Jun 20 '17 14:06 cagataycivici

This would be great, as when the options list is like 2000 or so it takes very long to load up

lallenfrancisl avatar Nov 11 '20 14:11 lallenfrancisl

We'll reconsider if there is more community feedback on this. Thank you for your report.

yigitfindikli avatar Feb 18 '21 13:02 yigitfindikli

I would also love this functionality as I am adding 20k+ items to list box and it takes for ages to dispaly

matusko89 avatar Mar 18 '21 17:03 matusko89

Would be a nice feature, i'm facing the same problem

v360-otavio-sales avatar Jul 06 '21 19:07 v360-otavio-sales

We'd also like this feature. Another thought is to expose a way to do filtering via a custom lazy event.

gwartnes avatar Oct 01 '21 14:10 gwartnes

+1

pete4dev avatar Oct 11 '21 11:10 pete4dev

+1

chillapp avatar Nov 14 '22 03:11 chillapp

I'm facing the same problem..

dhamzic avatar Jun 05 '23 17:06 dhamzic

+1 there no way to deal with server-side filter on all list components (dropdown, listbox, ... ( kind weird, such essencial behavior , was not predicted.

and its not that hard to accomplish. Some could expose the filter function as an @Input or (more efforts) expose the variable optionsToDisplay,

Does anyone came up with a solution/workaround? ta

lixaotec avatar Oct 23 '23 18:10 lixaotec

+1 -- I also need a listbox with a lot of items. It would be really handy if all the list components had the same mechanism for lazy loading that tables have.

naris avatar Jul 03 '24 18:07 naris

lazy loading does not seem to work, I get the following error when I enable lazy:

TypeError: Cannot read properties of undefined (reading 'emit') at _class_p_scroller_6_Template_p_scroller_onLazyLoad_0_listener (primeng-listbox.mjs:1119:35)

hgrullon avatar Jul 11 '24 18:07 hgrullon