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 17, 2021 at 6:43 pm
#101716
admin
Keymaster
Hi,
We are aware of that and work on it, but there is also an issue in the provided code. When you remove a row within that foreach, the next row’s index in the loop will be incorrect. We suggest you using a different type of loop – ‘for’ and correct its step after you remove a row. Otherwise, while you remove rows, you will skip a step in the loop.
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/