summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2013-09-30 17:36:51 +0200
committerFabio Bas <ctrlaltca@gmail.com>2013-09-30 17:36:51 +0200
commit064053a81f4ce4e9cef5e8984dadfe7cca049fb9 (patch)
treebc3f21355f56918932569e33d3dfcc665d7b9cf2 /framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
parent4ef09ccaf27e31ac5112b2846c253a2877f8a520 (diff)
Fix use of TCallbackOptions with TActiveCheckBoxList, TActiveRadioButtonList, TActiveRatingList
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveRadioButtonList.php')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveRadioButtonList.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php b/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
index c106f479..3244ce11 100644
--- a/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
+++ b/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
@@ -106,5 +106,16 @@ class TActiveRadioButtonList extends TRadioButtonList implements IActiveControl,
{
$this->raiseEvent('OnCallback', $this, $param);
}
+
+ /**
+ * Ensure that the ID attribute is rendered and registers the javascript code
+ * for initializing the active control.
+ */
+ protected function addAttributesToRender($writer)
+ {
+ parent::addAttributesToRender($writer);
+ $this->getActiveControl()->registerCallbackClientScript(
+ $this->getClientClassName(), $this->getPostBackOptions());
+ }
}