summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/WebControls/TDropDownList.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TDropDownList.php b/framework/Web/UI/WebControls/TDropDownList.php
index a3c02c15..14a4dac4 100644
--- a/framework/Web/UI/WebControls/TDropDownList.php
+++ b/framework/Web/UI/WebControls/TDropDownList.php
@@ -26,7 +26,7 @@ Prado::using('System.Web.UI.WebControls.TListControl');
* @package System.Web.UI.WebControls
* @since 3.0
*/
-class TDropDownList extends TListControl implements IPostBackDataHandler
+class TDropDownList extends TListControl implements IPostBackDataHandler, IValidatable
{
/**
* Adds attributes to renderer.
@@ -101,5 +101,15 @@ class TDropDownList extends TListControl implements IPostBackDataHandler
{
throw new TNotSupportedException('dropdownlist_selectedindices_unsupported');
}
+
+ /**
+ * Returns the value to be validated.
+ * This methid is required by IValidatable interface.
+ * @return mixed the value of the property to be validated.
+ */
+ public function getValidationPropertyValue()
+ {
+ return $this->getSelectedValue();
+ }
}
?> \ No newline at end of file