diff options
| -rw-r--r-- | .gitattributes | 2 | ||||
| -rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket708.page | 18 | ||||
| -rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket708.php | 30 | 
3 files changed, 50 insertions, 0 deletions
| diff --git a/.gitattributes b/.gitattributes index b13ebf41..ce8247c4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2951,6 +2951,8 @@ tests/FunctionalTests/tickets/protected/pages/Ticket691.page -text  tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.page -text  tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php -text  tests/FunctionalTests/tickets/protected/pages/Ticket703/config.xml -text +tests/FunctionalTests/tickets/protected/pages/Ticket708.page -text +tests/FunctionalTests/tickets/protected/pages/Ticket708.php -text  tests/FunctionalTests/tickets/protected/pages/Ticket72.page -text  tests/FunctionalTests/tickets/protected/pages/Ticket72.php -text  tests/FunctionalTests/tickets/protected/pages/Ticket93.page -text diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket708.page b/tests/FunctionalTests/tickets/protected/pages/Ticket708.page new file mode 100644 index 00000000..f92fb34a --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket708.page @@ -0,0 +1,18 @@ +<com:TContent id="Content">
 +<com:TDataGrid AutoGenerateColumns="false" id="grid">
 +	<com:TTemplateColumn HeaderText="Radio">
 +		<prop:ItemTemplate>
 +			<com:TActiveRadioButton
 +				id="RadioButton"
 +				UniqueGroupName="RadioGroup"
 +				AutoPostBack="true"
 +				Value=<%#$this->Parent->Data['RadioValue']%>
 +				OnCheckedChanged="Page.ChangeRadio"/>
 +		</prop:ItemTemplate>
 +	</com:TTemplateColumn>
 +	<com:TBoundColumn HeaderText="Value" DataField="Text"/>
 +</com:TDataGrid>
 +<p>
 +<com:TActiveLabel id="Result"/>
 +</p>
 +</com:TContent>
\ No newline at end of file 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 | 
