blob: b93f36c23e9d90b1f91bb5235b66d93f471e5f76 (
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
|
<?php
class Home extends TPage
{
protected function collectSelectionResult($input,$output)
{
$indices=$input->SelectedIndices;
$result='';
foreach($indices as $index)
{
$item=$input->Items[$index];
$result.="(Index: $index, Value: $item->Value, Text: $item->Text)";
}
if($result==='')
$output->Text='Your selection is empty.';
else
$output->Text='Your selection is: '.$result;
}
public function selectionChanged($sender,$param)
{
$this->collectSelectionResult($this->RadioButtonList,$this->SelectionResult);
}
}
|