protected function needPostBackScript() { return $this->canCauseValidation() || $this->getButtonType() !== TButtonType::Submit && ($this->hasEventHandler('OnClick') || $this->hasEventHandler('OnCommand')) || $this->getIsDefaultButton(); }