I just figured out (not documented?) that in Angular-slickgrid when you set enableExcelCopyBuffer flag to true, it allows you to select multiple cells.
Nevertheless, it does not work when enableRowSelection flag is set to true.
While I understand why both does not work together by default, is there a way to do like on Excel where row selection is possible when clicking on the row index?
I've tried with the method setSelectedRows but it only works when row selection is enabled thus disabling cells selection.
I've also tried to change gridOptions dynamically when clicking on a specific column but nothing happend when I call render method.
As mentionned, there are two SlickGrid selection models: cell selection and row selection.
If you want to use both, what I suggest is to create a column which contains the index of the row, like in Excel. This one will be used to do row selection. If we click on a cell from this column, we switch the selection model by using
setSelectionModelfrom SlickGrid. To take these changes into account, you have to callinvalidate.Here is a partial example where
OnClickmethod is binded to(onClick):