You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a custom onClick Javascript function does not seem to work anymore when using toggleSelection to select a single row (by index):
Code snippet
function setSingleSelectedRow(tableName, rowInfo, colInfo, state, instance) {
state.toggleSelection(rowInfo.index)
}
The code did work with version 0.2.3, but it seems to be broken with version 0.4.4 (our project has been updated recently).
Could you provide an alternative solution?
The text was updated successfully, but these errors were encountered:
function setSingleSelectedRow(tableName, rowInfo, colInfo, state, instance) {
// Clear the current selection to ensure only one row is selected
state.resetRowSelection();
// Select the new row by index
state.toggleRowSelected(rowInfo.index, true);
Using a custom
onClick
Javascript function does not seem to work anymore when usingtoggleSelection
to select a single row (by index):Code snippet
The code did work with version 0.2.3, but it seems to be broken with version 0.4.4 (our project has been updated recently).
Could you provide an alternative solution?
The text was updated successfully, but these errors were encountered: