Home General

Callback when Control is dumped ?

Is there a way to get notified when a control is dumped ?
I noticed there's a Control.Rendering event handler that happens just before. Unfortunately at that stage I cannot yet access the element in JS using document.getElementById.

  • right now I'm polling for it in a background thread, but it's pretty ugly.
  • I suppose I could setup a mutation observer and a custom event but that's quite a bit of code as well

I don't mind if the solution involves hacking into the Controls internals (reflection...)

Thanks

Comments

Sign In or Register to comment.