protected needPostBackScript ( ) : boolean | ||
return | boolean | whether the button needs javascript to do postback |
protected function needPostBackScript()
{
return $this->canCauseValidation() || $this->getButtonType() !== TButtonType::Submit && ($this->hasEventHandler('OnClick') || $this->hasEventHandler('OnCommand')) || $this->getIsDefaultButton();
}