Hi,
I have a RepeatingPanel, within its RowTemplate are two pairs of a Link and a TextBox. My intention is to display TextBox when a user clicks the Link (and hide the Link), and to redisplay the Link and hide TextBox when TextBox looses the focus.
The event handlers are:
def link_value_click(self, **event_args):
"""This method is called when the link is clicked"""
self.link_value.visible = False
self.text_box_value.visible = True
def text_box_value_lost_focus(self, **event_args):
"""This method is called when the TextBox loses focus"""
self.refresh_data_bindings()
self.text_box_value.visible = False
self.link_value.visible = True
Basically it works fine, except that the lost focus handler is sporadically not being run - sometimes it does work, sometimes not, for the same element. Might be that the “lost focus” is picky in regard to what has been clicked or the way for the focus to get lost (i.e. tab)?
Thanks, Tomaz