title: How to compare dates in 2 columns of a row in Kendo UI Grid?
body: <p>I have a kendo UI Grid, in that I have 2 columns StartDate and EndDate. 
  While doing inline editing, I want to compare that StartDate should not be greater than EndDate.
  I am doing this below in the custom validation of the StartDate Field.
  But the var StartDate is getting null value assigned.</p>
  
  <pre><code>model: {
                  id: "BusinessAreaDivisionMappingId",
                  fields: {
                      BusinessAreaDivisionMappingId: { type: "number", editable: false, nullable: false },
  
                      StartDate: {
                          from: "BusinessAreaDivisionMappingEntity.StartDate", type: "date",
                          validation:
                              {
                                  required: true,
                                  dateComparisonValidation: function (input) {
                                      debugger;
                                      if (input &amp;&amp; (input.attr("name") == "StartDate"|| input.attr("name") == "EndDate")) {
                                          input.attr("data-dateComparisonValidation-msg", "Start Date cannot be more than End Date");
                                          var startDate = input.closest(".k-edit-form-container").find("[name='StartDate']").data("kendoDatePicker");
                                          var endDate = input.closest(".k-edit-form-container").find("[name='EndDate']").data("kendoDatePicker");
                                          if (Date(startDate) &gt; Date(endDate)) {
                                              return false;
                                          }
                                      }
                                      return true;
                                  }
                              }
                      },
                      EndDate: { from: "BusinessAreaDivisionMappingEntity.EndDate", type: "date" }
                  }
              }
  </code></pre>