Prado\Web\UI\WebControls\TCheckBox::setChecked PHP Method

setChecked() public method

Sets a value indicating whether the checkbox is to be checked or not.
public setChecked ( $value )
    public function setChecked($value)
    {
        $this->setViewState('Checked', TPropertyValue::ensureBoolean($value), false);
    }

Usage Example

 protected function createBooleanControl($container, $column, $record)
 {
     $value = $this->getRecordPropertyValue($column, $record);
     $control = new TCheckBox();
     $control->setChecked(TPropertyValue::ensureBoolean($value));
     $control->setCssClass('boolean-checkbox');
     $this->setDefaultProperty($container, $control, $column, $record);
     return $control;
 }
All Usage Examples Of Prado\Web\UI\WebControls\TCheckBox::setChecked