Search code examples
javascriptjqueryslickgrid

SlickGrid multiSelect="false" does not disable keyboard multi selection


I am using slickgrid in my project, and I want to use it's multi selection disabling option. My problem is, that the multiSelect="false" works for stopping mouse multi selection, but I can select multiple rows using SHIFT + Arrow key combination.

Do you have any simple (built in) solution to disable arrow key multi selection too, or do I have to do it in the onSelectedRowsChanged event?

Thank you.


Solution

  • after much searching I found this bug in the library in the slick.rowselectionmodel.js file

    read and add this lines in handleKeyDown function

    function handleKeyDown(e) {
          if (!_grid.getOptions().multiSelect) {
            return false;
          }