Columntoggle table: Use delegation to attach events to the checkboxes

Fixes #6683