Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SHift-click jqgrid multiselect missing last row

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!

like image 651
jeffery_the_wind Avatar asked Dec 12 '22 01:12

jeffery_the_wind


1 Answers

try replacing this: if ((shouldSelectRow = id == startID || shouldSelectRow)) { with this:

if ((shouldSelectRow = id == startID || shouldSelectRow) && (id != rowid)){
like image 128
Michael Gendin Avatar answered Dec 29 '22 21:12

Michael Gendin