title: kendo datepicker month template with min and max value
body: <p>i have set a min and a max value on a kendo datepicker. Now the dates that are not in range are not shown, but i want to see the dates, but grayed out. 
  I was looking at the monthtemplate property, but i can't get my template right. I have following code, but it gives a template error.</p>
  
  <pre><code> @(Html.Kendo().DatePickerFor(m =&gt; m.PurchaseDate)
                        .Value(Model.PurchaseDate)
                        .Max(DateTime.Today)
                        .MonthTemplate("# if data.date &lt; '"+DateTime.Today+"') { #" +
                           "&lt;div class='inarray'&gt;#= data.value #&lt;/div&gt;" +
                        "# } else { #" +
                           "&lt;div class='outofarray'&gt;#= data.value #&lt;/div&gt;" +
                        "# } #")       
                        .Events(ev =&gt; ev.Change("setMinExpiryDate"))
  
                  )
  </code></pre>
  
  <p>thanks for your help</p>