summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgodzilla80@gmx.net <>2009-11-08 08:26:42 +0000
committergodzilla80@gmx.net <>2009-11-08 08:26:42 +0000
commit5d08e2fcf92c48d7111fc5f0ff29e4cf88e14070 (patch)
tree25876b83337caaa08c1086dd68e98283d7f2d260
parent38a149c8079964b09b1a259a311a6afddec4f046 (diff)
Add property TValidationSummary.ScrollToSummary to server-side control since property exists on client-side
-rw-r--r--HISTORY1
-rw-r--r--framework/Web/UI/WebControls/TValidationSummary.php17
2 files changed, 18 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index c5a662f9..3272f185 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6,6 +6,7 @@ BUG: Issue#198 - "Undefined variable: tagName" after error in application config
BUG: Typo in TBoundColumn (Robin)
ENH: Add property ClientScriptManagerClass to TPageService and releated changes in TPage.getClientScript() (Yves)
ENH: Always render clientside counterparts of validation control even if not enabled, but pass-through Enabled property, to allow Enabled/Disable of validator on callback. (Yves)
+EHN: Add property TValidationSummary.ScrollToSummary to server-side control since property exists on client-side. (Yves)
Version 3.1.6 July 22, 2009
BUG: Issue#98 - Missing file in quickstart demo (Chrisotphe)
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
@@ -149,6 +149,22 @@ class TValidationSummary extends TWebControl
}
/**
+ * @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.
*/
public function getShowAnchor()
@@ -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();