idTop
string id
Get the id of radio button object.
Show/Hide Code
<?php
$radioYes = $myform_mananger->AddControl(new KoolRadioButton("radioYes"));
echo $radioYes->id;// The output is "radioYes".
?>
Supported from version: 1.0.0.0
NameTop
string Name
Set name for group of radio buttons.
Show/Hide Code
<?php
$radioYes = $myform_mananger->AddControl(new KoolRadioButton("radioYes"));
$radioYes->Text = "Yes";
$radioYes->Name = "agree_to_term";
$radioNo = $myform_mananger->AddControl(new KoolRadioButton("radioNo"));
$radioYes->Text = "No";
$radioYes->Name = "agree_to_term";
?>
Supported from version: 1.0.0.0
SelectedTop
bool Selected
Get or set the value of radio button. This variable will reflect the selection of radio button.
Default value : false
Show/Hide Code
<?php
$radioYes = $myform_mananger->AddControl(new KoolRadioButton("radioYes"));
$radioYes->Text = "Yes";
$radioYes->Selected = false;
$myform_manager->Init();
if($myform_manager->IsPostBack)
{
if($radioYes->Selected) echo "You selected Yes";
}
?>
Supported from version: 1.0.0.0
TextTop
string Text
Set the text that goes with radio button.
Show/Hide Code
<?php
$radioYes = $myform_mananger->AddControl(new KoolRadioButton("radioYes"));
$radioYes->Text = "Yes";
$radioYes->Name = "agree_to_term";
$radioNo = $myform_mananger->AddControl(new KoolRadioButton("radioNo"));
$radioYes->Text = "No";
$radioYes->Name = "agree_to_term";
?>
Supported from version: 1.0.0.0