protected function createDefaultControl($container, $column, $record) { $value = $this->getRecordPropertyValue($column, $record); $control = new TTextBox(); $control->setText($value); $control->setCssClass('default-textbox scaffold_input'); if (($len = $column->getColumnSize()) !== null) { $control->setMaxLength($len); } $this->setNotNullProperty($container, $control, $column, $record); return $control; }