/**
  * Registers the javascript code for initializing the active control.
  * @param THtmlWriter the renderer.
  */
 public function render($writer)
 {
     parent::render($writer);
     $this->getActiveControl()->registerCallbackClientScript($this->getClientClassName(), $this->getTriggerOptions());
     if ($this->getStartTimerOnLoad()) {
         $id = $this->getClientID();
         $code = "Prado.WebUI.TTimeTriggeredCallback.start('{$id}');";
         $cs = $this->getPage()->getClientScript();
         $cs->registerEndScript("{$id}:start", $code);
     }
 }