JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Table › Sort and updateRow bug › Reply To: Sort and updateRow bug
December 2, 2024 at 11:55 pm
#111875
admin
Keymaster
Hi Scott,
The code should be updated like this:
document.querySelector('button').onclick = () => {
const table = document.getElementById('table');
const state = table.saveState();
table.clearSort();
table.updateRow('c', {id: 'bc', name: 'Item C2'});
table.loadState(state);
}
Regards,
Markov
Smart UI Team
https://www.htmlelements.com/