PDA

View Full Version : Want to select rows without selecting checkboxes in CheckboxSelectionModel



anirbangupta
30 Mar 2013, 8:03 PM
Hi,


I am using CheckboxSelectionModel to select a row. In that, the row gets selected when I click the checkbox, or when I click on the row, the checkbox gets selected (if I use the attribute checked : false). But my requirement is that when I will click on any value of the row, the row will get selected but the checkbox will not get checked. I mean, it will only highlight the row. Can anyone kindly suggest me how to achieve this? We cannot use RowSelectionModel as my selection model, as in that case, the checkbox will no longer appear.

Regards,
Anirban.

willigogs
31 Mar 2013, 10:47 AM
Use the checkOnly:true config option under the checkboxSelectionModel:
http://docs.sencha.com/ext-js/3-4/#!/api/Ext.grid.CheckboxSelectionModel-cfg-checkOnly