summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket708.php
diff options
context:
space:
mode:
authortof <>2007-09-29 15:48:00 +0000
committertof <>2007-09-29 15:48:00 +0000
commit134bd264482d929de567e45aa684f56e826b7c3f (patch)
tree07fbc2477c0333b87dfa112f2edd9a80ffeae6b4 /tests/FunctionalTests/tickets/protected/pages/Ticket708.php
parentdc203fc3b1ad6a974e61a89596a938d249def131 (diff)
Functional Test for ticket #708
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket708.php')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket708.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket708.php b/tests/FunctionalTests/tickets/protected/pages/Ticket708.php
new file mode 100644
index 00000000..b57aa444
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket708.php
@@ -0,0 +1,30 @@
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket708 extends TPage
+{
+ public function onLoad ($param)
+ {
+ if (!$this->getIsCallback() && !$this->getIsPostBack())
+ {
+ $this->grid->dataSource=$this->getData();
+ $this->grid->dataBind();
+ }
+ }
+
+ protected function getData()
+ {
+ return array (
+ array ('RadioValue' => 1, 'Text' => 'Radio 1'),
+ array ('RadioValue' => 2, 'Text' => 'Radio 2'),
+ array ('RadioValue' => 3, 'Text' => 'Radio 3'),
+ array ('RadioValue' => 4, 'Text' => 'Radio 4'),
+ );
+ }
+
+ public function ChangeRadio ($sender, $param)
+ {
+ $this->Result->setText("You have selected Radio Button #".$sender->getValue());
+ }
+}
+?> \ No newline at end of file