Search code examples
extjsextjs4extjs5

extjs- checkboxgrid check boxs unselecting on clicking different column in grid


I am using checkboxmodel grid in extjs for display values.

after selecting multiple row checkboxs, if i click different column all selected checkbox are unselecting. how to stop this.

https://fiddle.sencha.com/#fiddle/18bj


Solution

  • Use checkOnly: true on the selection model:

    True if rows can only be selected by clicking on the checkbox column, not by clicking on the row itself. Note that this only refers to selection via the UI, programmatic selection will still occur regardless.

    https://fiddle.sencha.com/#fiddle/18bo