From 5d08e2fcf92c48d7111fc5f0ff29e4cf88e14070 Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Sun, 8 Nov 2009 08:26:42 +0000 Subject: Add property TValidationSummary.ScrollToSummary to server-side control since property exists on client-side --- framework/Web/UI/WebControls/TValidationSummary.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'framework') diff --git a/framework/Web/UI/WebControls/TValidationSummary.php b/framework/Web/UI/WebControls/TValidationSummary.php index ab066f78..4ed2eebe 100644 --- a/framework/Web/UI/WebControls/TValidationSummary.php +++ b/framework/Web/UI/WebControls/TValidationSummary.php @@ -148,6 +148,22 @@ class TValidationSummary extends TWebControl $this->setViewState('ShowSummary',TPropertyValue::ensureBoolean($value),true); } + /** + * @return boolean whether scroll summary into viewport or not. Defaults to true. + */ + public function getScrollToSummary() + { + return $this->getViewState('ScrollToSummary',true); + } + + /** + * @param boolean whether scroll summary into viewport or not. + */ + public function setScrollToSummary($value) + { + $this->setViewState('ScrollToSummary',TPropertyValue::ensureBoolean($value),true); + } + /** * @return boolean whether the validation summary should be anchored. Defaults to false. */ @@ -254,6 +270,7 @@ class TValidationSummary extends TWebControl if(!$this->getShowSummary()) $options['ShowSummary']=false; + $options['ScrollToSummary']=$this->getScrollToSummary(); $options['HeaderText']=$this->getHeaderText(); $options['DisplayMode']=$this->getDisplayMode(); -- cgit v1.2.3