/** * @param string caption text */ public function setCaption($value) { parent::setCaption($value); // if it's an active control, this should not be needed. $this->callClientFunction('setCaption', $value); }
/** * Ensure that the ID attribute is rendered and registers the javascript code * for initializing the active control. */ protected function addAttributesToRender($writer) { parent::addAttributesToRender($writer); $this->getActiveControl()->registerCallbackClientScript($this->getClientClassName(), $this->getPostBackOptions()); }