Search code examples
slickgrid

Use CellSelectionModel with autoEdit:true in SlickGrid


I have a SlickGrid on my site and have implemented some copy/paste functionality. This requires that I use the CellSelectionModel, which requires that I set autoEdit to false for the grid.

I want autoEdit to be true and still be able to use my selection model. Does anyone know how to do this?


Solution

  • You can have the copy/paste functionality with autoEdit true. I have it.

    You can try it for yourself here: http://labs.nereo.com/SlickGrid/examples/example-excel-compatible-spreadsheet.html

    Now, with a javascript console, write:

    grid.setOptions({autoEdit:true})
    

    You still can copy/paste. It is more difficult to select a range of cells... (you can't have any active cell, without more development).

    But, the short answer is, you can.