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

**URL:** <https://forum.inductiveautomation.com/t/editing-perspective-table-with-allowediton-single-click-still-takes-two-clicks/30446>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [December 4, 2019, 6:15pm UTC](https://forum.inductiveautomation.com/t/editing-perspective-table-with-allowediton-single-click-still-takes-two-clicks/30446 "2019-12-04T18:15:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 14, 2022, 11:14pm UTC](https://forum.inductiveautomation.com/t/editing-perspective-table-with-allowediton-single-click-still-takes-two-clicks/30446/3 "2022-03-14T23:14:15Z")

</div>

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`.

```auto
	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

```auto
"value": {
  "chk": false
}

```

and bound the checkbox to `view.params.value.chk`.  
 ![Checkbox single-click](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/e/0e3463366b6ac377ecbd422b8c2360c61881d4e5.png)

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

---

_[View the full topic](https://forum.inductiveautomation.com/t/editing-perspective-table-with-allowediton-single-click-still-takes-two-clicks/30446)._
