From 8fede6b6ae8220e264b2eb46819b261d6b39c96b Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 1 Jun 2011 21:47:27 +0000 Subject: added documentation for TActiveRadioButton class --- .../pages/ActiveControls/ActiveRadioButton.page | 20 ++++++ .../protected/pages/ActiveControls/Home.page | 2 +- .../Samples/TActiveRadioButton/Home.page | 82 ++++++++++++++++++++++ .../Samples/TActiveRadioButton/Home.php | 27 +++++++ 4 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php (limited to 'demos') diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page new file mode 100644 index 00000000..ac6cf5ae --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page @@ -0,0 +1,20 @@ + + +

TRadioButton

+ + +

+TActiveRadioButton is the active control counter part to TRadioButton. +The AutoPostBack property is set to true by default. Thus, when the radio button is clicked a +OnCallback event is raise after OnCheckedChanged event. +

+ +

+The Text and Checked properties can be changed during a callback. +The GroupName property may NOT be changed during callback because the client-side +name attribute is read-only and can not be changed using javascript. +

+ + + +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page index d5fe1360..6f403a42 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -84,7 +84,7 @@ TActiveButton control. See also the later part of the TActiveRadioButton + TActiveRadioButton represents a radiobutton on a Web page. It is mainly used in a group from which users make a choice. It can be used to perform a callback request. diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page new file mode 100644 index 00000000..13b7853c --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page @@ -0,0 +1,82 @@ + + +

TActiveRadioButton Samples

+ + + + + + + + + + + +
+A callback radiobutton: + + +
+A radiobutton causing validation on a textbox: + + + + +
+A radiobutton validated by a required field validator: + + + + +
+A radiobutton group: + + + + + +
+ +
+ +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php new file mode 100644 index 00000000..034d2fcc --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php @@ -0,0 +1,27 @@ +Text="I'm clicked"; + } + + public function selectRadioButton($sender,$param) + { + $selection=''; + if($this->Radio1->Checked) + $selection.='1'; + if($this->Radio2->Checked) + $selection.='2'; + if($this->Radio3->Checked) + $selection.='3'; + if($this->Radio4->Checked) + $selection.='4'; + if($selection==='') + $selection='empty'; + $this->Result->Text='Your selection is '.$selection; + } +} + +?> \ No newline at end of file -- cgit v1.2.3