JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Table › Invalid Item Index when removing from Table › Reply To: Invalid Item Index when removing from Table
April 19, 2021 at 12:23 pm
#101719
Member
Thank you so much for your answer Peter! Right now while the issue is solved I’m using this:
for (const i of Array.from(table.getSelection()).sort((a, b) => b – a))
table.dataSource.removeAt(i)
This supports random selection between different table pages, it always deletes starting form the highest index, but again the problem is that all index should be updated because if I remove index 1 and 2, and then the new 1 and 2 it removes 3 and 4.
Best regards,
Johnny Johnny