summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket708.php
blob: b57aa444fff1a78339055da32150945534fd9df9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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());	
	}
}
?>