ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / Calendar Class / ItemValidator Property






In This Topic
    ItemValidator Property (Calendar)
    In This Topic
    Gets or sets the name of a validator javascript function to determine whether dates are valid for selection.
    Syntax
    'Declaration
     
    
    <JsonConverterAttribute(C1.JsonNet.Converters.FunctionConverter)>
    Public Property ItemValidator As System.String
    'Usage
     
    
    Dim instance As Calendar
    Dim value As System.String
     
    instance.ItemValidator = value
     
    value = instance.ItemValidator
    [JsonConverter(C1.JsonNet.Converters.FunctionConverter)]
    public System.string ItemValidator {get; set;}
    public read-write property ItemValidator: System.String; 
    JsonConverterAttribute(C1.JsonNet.Converters.FunctionConverter)
    public function get,set ItemValidator : System.String
    [JsonConverter(C1.JsonNet.Converters.FunctionConverter)]
    public: __property System.string* get_ItemValidator();
    public: __property void set_ItemValidator( 
       System.string* value
    );
    [JsonConverter(C1.JsonNet.Converters.FunctionConverter)]
    public:
    property System.String^ ItemValidator {
       System.String^ get();
       void set (    System.String^ value);
    }
    Remarks
    If specified, the validator function should take one parameter representing the date to be tested, and should return false if the date is invalid and should not be selectable.
    See Also