Listener for Grid Editor Activation

Does anyone know of a way to identify when the Grid Editor is activated and deactivated?

There is API isEditorEnabled() in Grid which returns true/false if the editor is open or not. But there is no event currently that could be listened if editor opens. This is something that could be addressed in future versions of framework.

One workaround is to use threads to handle cases like this. I wrote experimental demo that does so.!addon/addrowbutton-add-on

Thank you, Tatu. I can work with this, but it would be far more beneficial to be able to fire an event when the editor becomes active as well as when it becomes deactivated.

Once again, Thanks.