#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/