Scenario: When a user is trying to edit a row and in meanwhile if they select another row then a warning dialog should be shown stating that "If you proceed further, ongoing changes will be lost" with two buttons i.e. Go Back and OK. Here, we should allow selection only when user clicks on OK else the previous selection(edited row) should be honoured.
Question: I agree that it's an implementation issue but does ag-grid provides any flexible solution to stop the selection until user confirms.
Areas I explored: 1. I explored isRowSelectable feature, this mainly runs at initialization time and stops the selection itself. But in my scenario, I need to stop row selection based on some state/prop in reactJS(not based on the row data) 2. Also tried suppressing rowClickSelection in rowClicked and cellClicked events, it stops firing selectionChanged event but still I see the row is highlighted in blue color.
Can someone suggest the best solution to this problem?