It works in the sense that it displays all items from ModelB but -of course- it doesn’t work as I want because it doesn’t display checked boxes, and it doesn’t update table that joins ModelA with ModelB. Maybe I have to write code to do that? I mean to know if a check is checked in getItems function and an INSERT statement in a afterSave() function to update join table?
It display all 4 checkboxes but I’ve tried for a few hours to make checkboxes 1 & 3 checked and it seems not possible. I hope I’m doing something wrong because i cannot believe that checkboxlist doesn’t implement a way to render checkboxes checked/unchecked. Either with ‘attributes’ key (that is passed as htmlOptions) doesn’t work because it assigns key/value couple to all checkboxes… Just to be clear: