An event handler cannot be set for a data widget, which is not enabled for event handling ( enableEventHandling ()). Enable event handling for the data widget or choose another data widget.