Added infinite scroll (live pagination) to the data grid.
What happened:
I tried to remove an item from the table via setItemsAt but there is code in the reactdatagrid repository stopping me from doing that:
const setItemsAt = (items, config) => {
for (let i = 0; i < items.length; i++) {
This code just loops through the existing items length and updates the item at the corresponding index so I cannot remove items from the table.
Problem description:
There's no way to remove items or add items to an infinite scroll enabled datatable without controlling the rows myself which then causes the scroll to jump from the rerender.
Suggested solution:
Really need a deleteItemAt and addItem to be able to add or delete an item when infinite scroll (live pagination) is enabled or at least have the setItemsAt allow for items to be removed and added when infinite scroll is enabled.
@inovua/reactdatagrid-community
or@inovua/reactdatagrid-enterprise
- 5.10.2Relevant code or config
What you did:
Added infinite scroll (live pagination) to the data grid.
What happened:
I tried to remove an item from the table via
setItemsAt
but there is code in the reactdatagrid repository stopping me from doing that:This code just loops through the existing items length and updates the item at the corresponding index so I cannot remove items from the table.
Problem description:
There's no way to remove items or add items to an infinite scroll enabled datatable without controlling the rows myself which then causes the scroll to jump from the rerender.
Suggested solution:
Really need a
deleteItemAt
andaddItem
to be able to add or delete an item when infinite scroll (live pagination) is enabled or at least have thesetItemsAt
allow for items to be removed and added when infinite scroll is enabled.