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
Can you use setSelectedIndex to un-selected a row on an aggrid?
I tried using the ag grid API to run setSelected(false) on a rowNode, but that did not update the state of the ag grid, so selectedRow was still set to something, even though visually it was no longer selected.
Also I tried setSelectedIndex('your-table-id', -1); like the AI suggested, but that didn't do anything, so wondering if there may be another way.
The use case here is that I want to open a modal whenever someone clicks on a row, which I can detect the selectedRow difference, but then when the modal closes I want to reset the selection.
The text was updated successfully, but these errors were encountered:
Can you use setSelectedIndex to un-selected a row on an aggrid?
I tried using the ag grid API to run setSelected(false) on a rowNode, but that did not update the state of the ag grid, so selectedRow was still set to something, even though visually it was no longer selected.
Also I tried setSelectedIndex('your-table-id', -1); like the AI suggested, but that didn't do anything, so wondering if there may be another way.
The use case here is that I want to open a modal whenever someone clicks on a row, which I can detect the selectedRow difference, but then when the modal closes I want to reset the selection.
The text was updated successfully, but these errors were encountered: