RegularExpressionValidator Class [PHP]
ErrorMessageTop
string ErrorMessage
Get or set the message shown when user input is not valid.
Show/Hide Code
<?php
$col = new GridBoundColumn();
$validator = new RegularExpressionValidator();
$validator->ValidationExpression = "/^([0-9])+$/"; // Only accept integer.
$validator->ErrorMessage = "Please enter integer";
$col->AddValidator($validator);
$grid->MasterTable->AddColumn($col);
?>
Supported from version: 1.3.0.0
ValidationExpressionTop
string ValidationExpression
Get or set the expression of validation.
Show/Hide Code
<?php
$col = new GridBoundColumn();
$validator = new RegularExpressionValidator();
$validator->ValidationExpression = "/^([0-9])+$/"; // Only accept integer.
$validator->ErrorMessage = "Please enter integer";
$col->AddValidator($validator);
$grid->MasterTable->AddColumn($col);
?>
Supported from version: 1.3.0.0