ag-grid-enterprise
ag-grid-enterprise copied to clipboard
Allow range selection to be performed only programatically
I'm submitting a ... (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request
Current behavior
When enableRangeSelection
flag is set to true
, user can set selection by draggin over desirable area. Developer can also set the selection programatically, for example using gridOptions.api.addRangeSelection({rowStart: 1, rowEnd: 1, columnStart: 'someId', columnEnd: 'someOtherId'})
.
Expected behavior I would like to enable range selection to be performed only programatically.
Minimal reproduction of the problem with instructions Not needed.
What is the motivation / use case for changing the behavior? We are showing/hiding some columns based on user clicks on a given cell in the grid and we would like to select (add to range selection) the cell he clicks and all the cells in the same row that appear after the click.
Please tell us about your environment: Not needed.
- ag-Grid-Enterprise version: 19.0.0
Alternatively - is there a quick work-around for this?