# C1.Web.Mvc.Calendar.ItemValidator

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_Calendar_ItemValidator_" data-uid="C1.Web.Mvc.Calendar.ItemValidator*">ItemValidator Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_Calendar_ItemValidator_" data-uid="C1.Web.Mvc.Calendar.ItemValidator*"></a>
<h4 id="C1_Web_Mvc_Calendar_ItemValidator" data-uid="C1.Web.Mvc.Calendar.ItemValidator">ItemValidator</h4>
<div class="markdown level1 summary"><p>Gets or sets the name of a validator javascript function to determine whether dates are valid for selection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[JsonConverter(typeof(FunctionConverter))]
public string ItemValidator { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;JsonConverter(GetType(FunctionConverter))&gt;
Public Property ItemValidator As String</code></pre>
</div>
<h5 id="C1_Web_Mvc_Calendar_ItemValidator_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>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.</p>
</div>
</div>
