Message Boards
Load element in search container
Francesco Laquintana, modified 4 Years ago.
Load element in search container
Junior Member Posts: 44 Join Date: 5/16/19 Recent Posts
I have a lot of element in a list, if i load all list into search container, i can't load the page. (timeout). How can i load the elements to group of 10 and when the user scroll down load others 10 element? I use liferay 6.2
Mohammed Yasin, modified 4 Years ago.
RE: Load element in search container
Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Hi,
If you use search container ideally it should not take much time because you will be fetching 10 records or more as per pagination at a time . If you are using getAllEntity() and then sub-listing it will take more time.
If you want scrolling you can do it with ajax call to server and update your list/table as per scroll event you can refer .
https://stackoverflow.com/questions/13057910/load-more-content-when-user-scrolls-near-bottom-of-page
If you use search container ideally it should not take much time because you will be fetching 10 records or more as per pagination at a time . If you are using getAllEntity() and then sub-listing it will take more time.
If you want scrolling you can do it with ajax call to server and update your list/table as per scroll event you can refer .
https://stackoverflow.com/questions/13057910/load-more-content-when-user-scrolls-near-bottom-of-page