title: Setting a column default value in the kendo ui grid to DateTime.Now
body: <p>I wish to make a grid within my visual studio program to display DateTime.now as a default but it's not working.</p>
  <p>The column within the Kendo grid:</p>
  <pre><code>columns.Bound(c =&gt; c.CurrentDate).EditorTemplateName(&quot;Date&quot;).Format(&quot;{0:dd/MM/yy}&quot;);
  </code></pre>
  <p>The declaration within my model:</p>
  <pre><code>public DateTime CurrentDate { get; set; }
  </code></pre>
  <p>When I load the web page the value of the text box within the column is set to the current date but the value is not displayed.</p>
  <p><strong>My Kendo UI Grid Code:</strong></p>
  <pre><code>@(Html.Kendo().Grid&lt;Kendo_UI_Bootstrap_Integration.Models.EID&gt;()
          .Name(&quot;EIDGrid&quot;)
          .Columns(
              columns =&gt;
              {
  
                  columns.Bound(c =&gt; c.Breed);
                  columns.Bound(c =&gt; c.Gender);
                  columns.Bound(c =&gt; c.AnimalId);
                  columns.Bound(c =&gt; c.EIDDate).EditorTemplateName(&quot;Date&quot;).ClientTemplate(DateTime.Now.ToString(&quot;dd/MM/yy&quot;));//.ClientTemplate(DateTime.Now.ToString()).Format(&quot;{0:dd/MM/yy}&quot;).EditorTemplateName(&quot;Date&quot;);//.EditorTemplateName(&quot;Date&quot;)
                  columns.Bound(c =&gt; c.EIDNum);
                  columns.Bound(c =&gt; c.BatchNum);
              }
      )
      .Scrollable(s =&gt; s.Height(&quot;350px&quot;))
      .Editable(editable =&gt; editable.Mode(GridEditMode.InCell).DisplayDeleteConfirmation(false))
      .Pageable()
      .DataSource(datasource =&gt; datasource
          .Ajax()
          .Model(model =&gt;
          {
              model.Id(p =&gt; p.SireGuid);
              //model.Field(p =&gt; p.SireGuid).DefaultValue(Guid.Empty);
              //model.Id(p =&gt; p.EIDDate);
              //model.Field(p =&gt; p.EIDDate).Editable(true);
  
          })
          .PageSize(100)
          .Batch(true)
          .Sort(s =&gt; s.Add(&quot;Name&quot;))
      ) )
  </code></pre>
  <p><strong>My Model code:</strong></p>
  <pre><code>using System; 
  using System.Collections.Generic; 
  using System.Globalization; 
  using System.Linq; 
  using System.Web;
  
  namespace Kendo_UI_Bootstrap_Integration.Models {
     
      public class EID
      {
  
          public string Breed { get; set; }
          public string Gender { get; set; }
          public string AnimalId { get; set; }
          public int EIDNum { get; set; }
          public int BatchNum { get; set; }
  
          public DateTime EIDDate { get; set; }
          
  
          
         
          public int ClusterIndex
          {
              get; set;
          }
          public System.Guid SireGuid { get; set; }
      }
   }
  </code></pre>
  <p><strong>My Controller Code:</strong></p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq; using System.Web; 
  using System.Web.Mvc;
  
  namespace Kendo_UI_Bootstrap_Integration.Controllers {
      public class EidController : Controller
      {
          // GET: Eid
          public ActionResult EidView ()
          {
              return View();
          }
      }
  }
  </code></pre>