コード例 #1
0
 protected function createTypeValidator($container, $column, $record)
 {
     $val = new TDataTypeValidator();
     $val->setControlCssClass('required-input2');
     $val->setCssClass('required');
     $val->setControlToValidate(self::DEFAULT_ID);
     $val->setValidationGroup($this->getParent()->getValidationGroup());
     $val->setDisplay(TValidatorDisplayStyle::Dynamic);
     $container->Controls[] = $val;
     return $val;
 }