tonytomov / jqGrid

jQuery grid plugin
www.trirand.com
2.84k stars 1.2k forks source link

Multiselect Button Turns Off By Itself #1007

Closed unle70 closed 2 years ago

unle70 commented 2 years ago

I have recently downloaded the latest version of jqGrid (v5.6.0) and jQuery itself (V3.6.0). Today I have noticed a new issue with the multi-select button (the "master" button on the "titles" section of the grid". When clicking this button, the "onSelectAll" event triggers just fine. At that time the "status" parameter is correct and the checkbox is ON. But sometime after this event is finished, the checkbox turns OFF by itself.

After several hours of checking I have pinpointed the problem to another event which is internal in jqGrid. It is a "click" event on the "th" surrounding the checkbox (th#grid_id_cb). If this is allowed to run, the checkbox gets turned off by itself. Maybe it's because the jqGrid code (lines# 5100-5148 in the full jqGrid.js file) return "false". Currently I was able to overcome the problem by running "event.stopPropagation()" at the last line of my customized "onSelectAll" handler.

I didn't have this issue with previous versions, so I'm wondering if any modification was done on this section.

tonytomov commented 2 years ago

Thanks. I will check this. As far as I remember no changes for multiselct code, but will check this too.

tonytomov commented 2 years ago

I was able to reproduce the problem. Have fixed it in GitHub. Thank you.

tonytomov commented 2 years ago

Will close it. Fell free to reopen if there is a problem