PDA

View Full Version : Grid checkbox selection and clicking deselecting



smarmysam
23 Apr 2013, 6:34 AM
Hi All,

I have a grid with checkbox selection model. When i click on a row it deselects my current checks. or when i accidentally miss the check the same thing happens.

I want the checkbox only to deselect when unclick the checkbox, no other time.

Can anyone let me know how i can implement that?

Thanks

slemmon
24 Apr 2013, 3:12 PM
You can specify that the rows is checked/unchecked only using the checkbox by setting checkOnly: true in the selection model config:
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.selection.CheckboxModel-cfg-checkOnly

smarmysam
25 Apr 2013, 1:58 AM
Thanks dude sometimes word of mouth trumps docs