protected function createComponent($name) { $control = parent::createComponent($name); if ($this->ajaxEnabled && $control instanceof IAjaxAware) { $control->enableAjax(); } return $control; }