Thanks. I think I’ve got the idea, but it’s still just disabling the checkboxes and never re-enabling them. Here’s what I have in my ItemTemplate code:
class ItemTemplate1(ItemTemplate1Template):
def __init__(self, **properties):
# Set Form properties and Data Bindings.
self.init_components(**properties)
self.label_1.text = self.item
self.check_box_1.enabled = False
self.set_event_handler('x-enable_checkbox', self.enable_checkbox())
# Any code you write here will run when the form opens.
def enable_checkbox(self, **event_args):
self.check_box_1.enabled = True
print('foo '+self.label_1.text)
def radio_button_1_clicked(self, **event_args):
"""This method is called when this radio button is selected"""
self.parent.raise_event_on_children('x-enable_checkbox')
self.check_box_1.enabled = False
I made it so the checkboxes are disabled by default, and when the event handler is added, it does enable all the checkboxes, so I know the event works properly. And I added a print statement to see when the event gets raised. Looks like it’s just not getting raised in the radio_button_1_clicked
event. Does raise_event_on_children actually execute the event on each row? Seems like that’s maybe not how this works?