[Solved] Data Group pagination removing previous results?

Hi, I am trying to create a list that grows indefinitely by having a “load more” button at the end of the list. I used a data group for this but the load more button that comes with the data group element replaces the old list with the new records.

How do I create a “load more” button that retains the old records and only appends the newly fetched records to the list?

Hi @RChester,

I think the default behaviour is to replace the old values with the new data, like it happens in Data table.

Will see if there is an option to append the data instead of changing it.

Thanks.

Hi @RChester,

We have fixed this issue and now it will append the result data with the new data, like exactly how you wanted.

Can you please check?

Thanks.

Hello @vishsahu,

I have checked it again and it works great!
Does it only work if the pagination button has the loadMore class? Would love to know how it works.

Thanks.

1 Like

Hi @RChester,

Glat it worked for you.

Yes, we need that class for identification.