I'm trying to write a selection model in which more than one selection range is allowed per a row. In slick.grid.js line 1143 any previous ranges on the same row get cleared. Could the If clause on line 1141 be changed from:
if (!hash[j]) { // prevent duplicates
selectedRows.push(j);
hash[j] = {};
}
To:
if (!hash[j]) { // prevent duplicates
selectedRows.push(j);
}
if (hash[j] == undefined) {
hash[j] = {};
}
I've also got a small feature request: If the viewport is only half full of rows can clicking on the empty half cause any selected rows to be deselected? This seems to be standard UI behaviour. I've got it working by adding this after line 2198:
if (!cell && selectionModel) {
selectionModel.setSelectedRanges([]);
resetActiveCell();
}
Or is there a way to do it without touching slick.grid.js?
Thanks for such a great lightweight grid.