JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Table › Remove table rows › Reply To: Remove table rows
January 20, 2021 at 2:42 am
#101336
fimarapp
Member
Thank you so much Yavor, that was really helpful ^^
but the problem is that if I check “select all” and then click on “Delete” I get an error ->Uncaught Error: Invalid Item Index
[x] | Name | Color | Pixels | Status |
[x] | Alice | Yellow | 324233 | On |
[x] | Bob | White | 111111 | Off |
…
[Delete] [Add]
function del() {
table.getSelection().forEach(row=> {
if (table.dataSource.length > 0) table.dataSource.removeAt(row)
})
table.selected = []
}
Thank u so much for your time in advance
Yavor Dashev