Editing Perspective table with allowEditOn single-click still takes two clicks

I had the same problem some time back and didn’t solve it. I understand a bit more now, had a quick look and this seems to work:

Configure an onRowClick event action on the table. Add a script. My checkbox view column is chk.

	if self.props.selection.selectedColumn == 'chk':
		self.props.data[event.row].chk = not self.props.data[event.row].chk

On the Checkbox subview I’ve added params

"value": {
  "chk": false
}

and bound the checkbox to view.params.value.chk.
Checkbox single-click

I can now single-click anywhere in the table cell and toggle the checkbox.

10 Likes