menu

ASP.NET MVC

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Validation

    Show / Hide Table of Contents

    Class Validation

    Inheritance
    System.Object
    Validation
    Implements
    IJsonSerializable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript.Models
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class Validation : IJsonSerializable

    Constructors

    Validation()

    Declaration
    public Validation()

    Properties

    CustomVal

    Gets or sets the custom validation.

    Declaration
    [JsonProperty("customVal")]
    public int CustomVal { get; set; }
    Property Value
    Type Description
    System.Int32

    The custome validation rule.

    Date

    Gets or sets a value indicating whether rule is based on date or not.

    Declaration
    [JsonProperty("date")]
    public bool Date { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the data validation value is date; otherwise, false.

    Digits

    Gets or sets a value indicating whether rule is based on digits or not.

    Declaration
    [JsonProperty("digits")]
    public bool Digits { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the data validation value is digits; otherwise, false.

    Number

    Gets or sets a value indicating whether rule is based on number or not.

    Declaration
    [JsonProperty("number")]
    public bool Number { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the data validation value is number; otherwise, false.

    Required

    Gets or sets a value indicating whether validation rule is required or not.

    Declaration
    [JsonProperty("required")]
    public bool Required { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the validation required is enabled; otherwise, false.

    Type

    Gets or sets the type of validation.

    Declaration
    [JsonProperty("type")]
    public string Type { get; set; }
    Property Value
    Type Description
    System.String

    The type of validation.

    Methods

    ToJson()

    Declaration
    public string ToJson()
    Returns
    Type Description
    System.String

    Implements

    IJsonSerializable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved