Please see AfterRenderJavaScript event which is described here:
http://doc.daypilot.org/scheduler/callback-update/
On the server side, pass a custom object to .Update() - it will be available in AfterRenderJavaScript. You can use a serialized JavaScript (which you will run using eval()) or you can send just a flag that a specific code should be executed (recommended).