TRangeValidator tests whether an input value is within a specified range. TRangeValidator uses three key properties to perform its validation. The {@link setMinValue MinValue} and {@link setMaxValue MaxValue} properties specify the minimum and maximum values of the valid range. The {@link setDataType DataType} property is used to specify the data type of the value and the minimum and maximum range values. These values are converted to this data type before the validation operation is performed. The following value types are supported: - Integer A 32-bit signed integer data type. - Float A double-precision floating point number data type. - Date A date data type. The date format can be specified by setting {@link setDateFormat DateFormat} property, which must be recognizable by {@link TSimpleDateFormatter}. If the property is not set, the GNU date syntax is assumed. - String A string data type. - StringLength check for string length. If {@link setStrictComparison StrictComparison} is true, then the ranges are compared as strictly less than the max value and/or strictly greater than the min value. The TRangeValidator allows a special DataType "StringLength" that can be used to verify minimum and maximum string length. The {@link setCharset Charset} property can be used to force a particular charset for comparison. Otherwise, the application charset is used and is defaulted as UTF-8.
Since: 3.0
Author: Qiang Xue (qiang.xue@gmail.com)
Inheritance: extends TBaseValidator
 protected function createRangeValidator($container, $column, $record)
 {
     $val = new TRangeValidator();
     $val->setControlCssClass('required-input3');
     $val->setCssClass('required');
     $val->setControlToValidate(self::DEFAULT_ID);
     $val->setValidationGroup($this->getParent()->getValidationGroup());
     $val->setDisplay(TValidatorDisplayStyle::Dynamic);
     $container->Controls[] = $val;
     return $val;
 }