summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
diff options
context:
space:
mode:
authorwei <>2006-10-01 03:09:18 +0000
committerwei <>2006-10-01 03:09:18 +0000
commit36f2ce766bde98c11d57b889fd9e1a7f8dff6010 (patch)
tree87c33c9e4447e20159932824b4de6167da495d49 /framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
parent1c32172efb18e8d08ea483e2460813670ebfe1a5 (diff)
Fixed #350 and #148, Add TActiveRatingList, should remove TRatingList from WebControls.
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveRadioButtonList.php')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveRadioButtonList.php21
1 files changed, 15 insertions, 6 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php b/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
index 3eb57ec7..f971228f 100644
--- a/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
+++ b/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
@@ -38,9 +38,9 @@ class TActiveRadioButtonList extends TRadioButtonList implements IActiveControl,
*/
public function __construct()
{
- parent::__construct();
$this->setAdapter(new TActiveListControlAdapter($this));
$this->setAutoPostBack(true);
+ parent::__construct();
}
/**
@@ -52,13 +52,20 @@ class TActiveRadioButtonList extends TRadioButtonList implements IActiveControl,
}
/**
- * No client class for this control.
- * This method overrides the parent implementation.
- * @return null no javascript class name.
+ * @return string javascript client-side control class name.
*/
protected function getClientClassName()
{
- return null;
+ return 'Prado.WebUI.TActiveRadioButtonList';
+ }
+
+ /**
+ * Registers the javascript code for initializing the active control.
+ */
+ protected function renderClientControlScript($writer)
+ {
+ $this->getActiveControl()->registerCallbackClientScript(
+ $this->getClientClassName(), $this->getPostBackOptions());
}
/**
@@ -67,7 +74,9 @@ class TActiveRadioButtonList extends TRadioButtonList implements IActiveControl,
*/
protected function createRepeatedControl()
{
- return new TActiveRadioButton;
+ $control = new TActiveRadioButton;
+ $control->getAdapter()->setBaseActiveControl($this->getActiveControl());
+ return $control;
}
/**