ValidationOpts Class |
Namespace: DataTables
public class ValidationOpts
The ValidationOpts type exposes the following members.
Name | Description | |
---|---|---|
ValidationOpts | Initializes a new instance of the ValidationOpts class |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Select |
Check to see if validation options have been given. If not, create
and instance with the default options and return that. This is
useful for checking to see if a user has passed in validation options
or not, since a new instance can't be a default parameter value.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Empty |
Allow a field to be empty, i.e. a zero length string -
`''` (`true` - default) or require it to be non-zero length (`false`).
| |
Message |
Error message should the validation fail
| |
Optional |
Require the field to be submitted (`false`) or not
(`true` - default). When set to `true` the field does not need to be
included in the list of parameters sent by the client - if set to `false`
then it must be included. This option can be particularly useful in Editor
as Editor will not set a value for fields which have not been submitted -
giving the ability to submit just a partial list of options.
|