SHift-click jqgrid multiselect missing last row
javascript, jqgrid, jquery, multi-select, shift
Solution
try replacing this: `if ((shouldSelectRow = id == startID || shouldSelectRow)) {` with this:
if ((shouldSelectRow = id == startID || shouldSelectRow) && (id != rowid)){
Problem
I adopted the code from this post and made this fiddle. Try clicking the first row, then shift-clicking the last row. If you notice this code does very well, except the last row, the row that you click on, does not get selected. I have been scratching my head on this one. Can anyone help me alter the code so that the multiselect selects the last row too? Thanks!