summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveDatePicker.php
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2012-04-14 14:38:05 +0000
committerctrlaltca@gmail.com <>2012-04-14 14:38:05 +0000
commit19ae94c152b5c654ee53b4655b73185addc84c67 (patch)
treedfb46738a4e0e5dcbecef906062c233a1136ff27 /framework/Web/UI/ActiveControls/TActiveDatePicker.php
parent46550b64a9be1420c0eb015935b22fc1e48af30e (diff)
more tests fixing
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveDatePicker.php')
-rwxr-xr-xframework/Web/UI/ActiveControls/TActiveDatePicker.php24
1 files changed, 23 insertions, 1 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveDatePicker.php b/framework/Web/UI/ActiveControls/TActiveDatePicker.php
index 7d10902b..603cfe3b 100755
--- a/framework/Web/UI/ActiveControls/TActiveDatePicker.php
+++ b/framework/Web/UI/ActiveControls/TActiveDatePicker.php
@@ -29,8 +29,29 @@ Prado::using('System.Web.UI.ActiveControls.TActiveControlAdapter');
* @package System.Web.UI.ActiveControls
* @since 3.1.3
*/
-class TActiveDatePicker extends TDatePicker implements ICallbackEventHandler, IActiveControl {
+class TActiveDatePicker extends TDatePicker implements ICallbackEventHandler, IActiveControl
+{
+ /**
+ * @return boolean a value indicating whether an automatic postback to the server
+ * will occur whenever the user modifies the text in the TTextBox control and
+ * then tabs out of the component. Defaults to false.
+ */
+ public function getAutoPostBack()
+ {
+ return $this->getViewState('AutoPostBack',false);
+ }
+
+ /**
+ * Sets the value indicating if postback automatically.
+ * An automatic postback to the server will occur whenever the user
+ * modifies the text in the TTextBox control and then tabs out of the component.
+ * @param boolean the value indicating if postback automatically
+ */
+ public function setAutoPostBack($value)
+ {
+ $this->setViewState('AutoPostBack',TPropertyValue::ensureBoolean($value),false);
+ }
/**
* Get javascript date picker options.
@@ -43,6 +64,7 @@ class TActiveDatePicker extends TDatePicker implements ICallbackEventHandler, I
$options['ValidationGroup']=$this->getValidationGroup();
$options['EventTarget'] = $this->getUniqueID();
$options['ShowCalendar'] = $this->getShowCalendar();
+ $options['AutoPostBack'] = $this->getAutoPostBack();
return $options;
}