/** * Ensure that the ID attribute is rendered and registers the javascript code * for initializing the active control. * * Since 3.1.4, the javascript code is not rendered if {@link setAutoPostBack AutoPostBack} is false * * @param THtmlWriter the writer for the rendering purpose * @param string checkbox id * @param string onclick js */ protected function renderInputTag($writer, $clientID, $onclick) { parent::renderInputTag($writer, $clientID, $onclick); if ($this->getAutoPostBack()) { $this->getActiveControl()->registerCallbackClientScript($this->getClientClassName(), $this->getPostBackOptions()); } }
/** * Override client implementation to avoid emitting the javascript * * @param THtmlWriter the writer for the rendering purpose * @param string checkbox id * @param string onclick js */ protected function renderInputTag($writer, $clientID, $onclick) { TCheckBox::renderInputTag($writer, $clientID, $onclick); }