Author Topic: How to link check boxes and select row  (Read 157 times)

jplevene

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 95
    • View Profile
How to link check boxes and select row
« on: May 01, 2024, 04:47:05 pm »
Is there a way or setting to link the checkboxes and the row select, so that when a row is selected/unselected, the checkbox is checked/unchecked and visa-versa?

There is no scientific reason for this apart from backwards similarity, as this is how the previous grid we used worked on multi row select. Some grids we want them to look and feel similar for only this reason.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6255
    • View Profile
Re: How to link check boxes and select row
« Reply #1 on: May 01, 2024, 07:26:17 pm »
That's column.cb.select sub-option

https://paramquery.com/pro/api#option-column-cb

jplevene

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 95
    • View Profile
Re: How to link check boxes and select row
« Reply #2 on: May 01, 2024, 10:54:20 pm »
Thanks.

Please note that this bug https://paramquery.com/forum/index.php?topic=4777.0, when I did the fix for it affected the method you suggest here, so I had to remove the fix.