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
getRadioState function return a radio state array, which is in the order of data records order(not row order).
If you want to get the radio state of row order, you need to use getCellCheckboxState API in a loop.
getRadioState function return a radio state array, which is in the order of data records order(not row order). If you want to get the radio state of row order, you need to use getCellCheckboxState API in a loop.
It's still a little bit counterintuitive, checking the radio means user wants to select the row and does something else with this record, but can not getRecordByCell correctly. Thanks anyway for your advice.
const i = tableInstance.getRadioState('radioColumn') # original data index
# const record = tableInstance.getRecordByCell(0, i + 1)
const record = tableInstance.records[i] # original data records
Version
1.0.0
Link to Minimal Reproduction
Steps to Reproduce
Current Behavior
The row number of
tableInstance.getRadioState('radioColumn')
is wrong, when sorting by other column.Expected Behavior
Returning the
new
row number instead oforiginal
oneEnvironment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: