From a26837b0990f65b7091263026296d2aff68d9838 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 18 Jan 2012 09:35:07 +0000 Subject: fixed #380 (TCustomValidator's ControlToValidate should be optional); added a quickstart example, updated 2 tests that were broken + HISTORY --- .../pages/Controls/Samples/TCustomValidator/Home.page | 13 +++++++++++++ .../pages/Controls/Samples/TCustomValidator/Home.php | 6 ++++++ 2 files changed, 19 insertions(+) (limited to 'demos/quickstart/protected/pages/Controls') diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.page index 7c1bccfe..65195a55 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.page @@ -64,6 +64,19 @@ Custom validator with focus-on-error enabled and dynamic display: + + +Custom validator without ControlToValidate: + + + + + + + diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php index 0db261b9..da0d15b2 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php +++ b/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php @@ -7,6 +7,12 @@ class Home extends TPage if($param->Value!=='test') $param->IsValid=false; } + + public function serverValidateNoControl($sender,$param) + { + if($this->TextBox4->Text!=='test') + $param->IsValid=false; + } } ?> \ No newline at end of file -- cgit v1.2.3