Dynamic Check Box Selection in Table

Here is a way to do it.
Step 1: Follow the tutorial posted by Transistor to create a checkbox in a view that is rendered in your Boolean column
Step 2: Add a hidden column called enabled to your table's data property
Step 3: In your checkbox's view, add the rowData parameter
image

Step 4: Bind your checkbox's enabled parameter to the view's rowData property, and add .enabled to the end of it.


Note: This will result in a null value and a red dot on your checkbox, but ignore this because this isn't a problem.
image

Once this is done, you can individually control the enabled property of each checkbox in your table by controlling the corresponding enabled value of the hidden column:
image

3 Likes