From 4d8ed423f7b4a8eae2898cc5552829595717a581 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 2 Jan 2006 20:59:17 +0000 Subject: TCheckBoxList and TRadioButtonList completed. --- .../Controls/Samples/TRadioButtonList/Home.page | 132 +++++++++++++++++++++ .../Controls/Samples/TRadioButtonList/Home.php | 22 ++++ 2 files changed, 154 insertions(+) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.php (limited to 'demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList') diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page new file mode 100644 index 00000000..95fea89b --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page @@ -0,0 +1,132 @@ + + +

TRadioButtonList Samples

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Radio button list with default settings: + + + + + + + +
+Radio button list with customized cellpadding, cellspacing, color and text alignment: + + + + + + + +
+Radio button list with vertical (default) repeat direction: + + + + + + + +
+Radio button list with horizontal repeat direction: + + + + + + + +
+Radio button list with flow layout and vertical (default) repeat direction: + + + + + + + +
+Radio button list with flow layout and horizontal repeat direction: + + + + + + + +
+Radio button list's behavior upon postback: + + + + + + + + +
+ +
+Auto postback radio button list: + + + + + + + + +
+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.php new file mode 100644 index 00000000..47d9b23b --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.php @@ -0,0 +1,22 @@ +RadioButtonList->SelectedIndex; + $value=$this->RadioButtonList->SelectedValue; + $text=$this->RadioButtonList->SelectedItem->Text; + $this->SelectionResult->Text="Your selection is (Index: $index, Value: $value, Text: $text)."; + } + + public function selectionChanged($sender,$param) + { + $index=$sender->SelectedIndex; + $value=$sender->SelectedValue; + $text=$sender->SelectedItem->Text; + $this->SelectionResult2->Text="Your selection is (Index: $index, Value: $value, Text: $text)."; + } +} + +?> \ No newline at end of file -- cgit v1.2.3