ghiscoding / slickgrid-universal

Slickgrid-Universal is a monorepo which includes all Editors, Filters, Extensions, Services related to SlickGrid usage and is also Framework Agnostic
https://ghiscoding.github.io/slickgrid-universal/
Other
90 stars 29 forks source link

about "Row Selection" and "enableExcelCopyBuffer" #1616

Closed hwlv closed 4 months ago

hwlv commented 4 months ago

Clear and concise description of the problem

/**

Suggested solution

I hava problem about this。when you use enableExcelCopyBuffer,you can cancel row select。so "enableExcelCopyBuffer" can use with "Row Selection" together。you can watch this. https://handsontable.com/docs/react-data-grid/demo/

Alternative

No response

Additional context

No response

Validations

ghiscoding commented 4 months ago

just because you want it, doesn't mean that the library can do it. The error message is correct, you cannot use the Excel Copy Buffer (CellSelectionModel) at the same time as the Row Selection (RowSelectionModel) because they use different Selection Models and SlickGrid doesn't allow more than 1 Selection Model to be loaded at a time, in other words SlickGrid cannot load the 2 different models required for this use case.

However, you could try this hack solution that seems to work, see this Stack Overflow https://stackoverflow.com/a/76810071/1212166

but it's really just a hack and it will not be supported by SlickGrid itself.

I'm closing this issue since there's no changes to do and it will still not be supported