mleibman / SlickGrid

A lightning fast JavaScript grid/spreadsheet
http://wiki.github.com/mleibman/SlickGrid
MIT License
6.82k stars 1.98k forks source link

Row remains unselected even when checkboxes in grid APPEAR to be selected #1040

Open adityakmehta opened 9 years ago

adityakmehta commented 9 years ago

Hi, If checkboxes in grid are checked/unchecked in a speedy manner, some checkboxes "appear" to be selected whereas the corresponding row remains unselected. Also, the html code for the questioned checkbox remains unchanged and attribute "checked" is not added to it. I am using Slickgrid v2.2.

Any help to avoid this uncommon behavior ?

Thanks in advance

checkbox

froodian commented 9 years ago

When I incorporated the checkboxseletcolumn into my project, I had to do some significant rewrite to it in order to support slick.remotemodel with it at the same time. I believe at that time I may have also fixed a few little issues like this. You can see my fork at https://github.com/froodian/SlickGrid/blob/master/plugins/slick.checkboxselectcolumn.js - note that as mentioned in the header comment, you'll have to subscribe to onSelectedRowsChanged and call render on the grid manually. Hope this helps you!

adityakmehta commented 9 years ago

Thanks for the reply Froodian. The solution provided by you talks about selection of rows outside the grid's current view. We have this thing already handled in our code. What problem I am facing is that using IE10, when we rapidly check/uncheck rows in the grid, checkbox of some rows automatically get checked but it fails to apply the selector to the row.

Putting this in a simpler manner: though the checkbox gets selected, it fails to apply the selector formatter to the row. Thus, the questioned row is not counted in the "selected" records.