Is there a way to limit the number of selected rows in an interactive grid?
We have an Interactive Grid where the user can select multiple rows, and based on the selected values there is a chart. The challenge is that we want to limit the number of selected rows in 4 (because the chart gets too crowded).
The expected behaviour, that the user selects 4 rows, and when the user selects one more, the first selected row will be unselected, so there are only 4 selected rows at the same time.
I tried to change the selection in a javascript DA with "setSelection" but the only thing I could achieve was to clear the selection or to set 1 selected row instead of 4.