PDA

View Full Version : Rowmodel selection only on checkbox click



theWallflower
14 Oct 2013, 1:18 PM
I have a grid panel with a row selection model. I would like to make it so that only clicking the checkbox selects the row, not anything else on the row itself. Is this possible. I thought this might be possible by unclicking the checkbox on row selection, but that doesn't cover the checkbox, and it seems counter-intuitive.

Gary Schlosberg
14 Oct 2013, 3:59 PM
If you are using Ext.selection.CheckboxModel (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.selection.CheckboxModel), how about using checkOnly (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.selection.CheckboxModel-cfg-checkOnly)?

theWallflower
15 Oct 2013, 5:14 AM
Yes, that worked. Thanks, I was overthinking it.