title: How to avoid duplicates in kendo grid
body: <p>This is my coding:</p>
  
  <pre><code>columns.Bound(c =&gt; c.Id).Hidden();
  columns.Bound(c =&gt; c.Name);
  columns.Bound(c =&gt; c.IsActive).Title("Active Status").ClientTemplate("&lt;input type='checkbox' name='active' ${ IsActive == true ? checked='checked' : ''} enabled value='#= IsActive#' /&gt;");
  </code></pre>
  
  <p>Event:</p>
  
  <pre><code>.Events(events =&gt; events.RequestEnd("OnRequestEnd").Change("index"))
  .Create(create =&gt; create.Action("Create", "Create"))
  .Read(read =&gt; read.Action("Read", "Read"))
  .Update(update =&gt; update.Action("Update", "Update"))
  </code></pre>
  
  <p>Function to check duplicate values:</p>
  
  <pre><code>function index(dataItem) {
  
      var grid = $("#grid").data("kendoGrid");
      var gridData = grid._data;
      console.log("gridData&gt;&gt;", gridData);
      console.log("dataItem&gt;&gt;", dataItem);
  
      if (grid.dataItem(grid.select()) != null || grid.dataItem(grid.select()) != undefined) {
          selectedItem = grid.dataItem(grid.select());
          console.log("selectedItem&gt;&gt;", selectedItem.ProviderTypeName);
  
          for (item in gridData) {
              console.log("grid[item].ProviderTypeName&gt;&gt;", gridData[item].ProviderTypeName);
              console.log("selectedItem", selectedItem.ProviderTypeName);
              if (gridData[item].ProviderTypeName == selectedItem.ProviderTypeName &amp;&amp; gridData[item].Id != selectedItem.Id) {
                  //e.preventDefault();
                  grid.bind("dataBinding", function (e) { e.preventDefault(); });
                  grid.unbind("dataBinding");
                  grid.refresh();
                  alert("Duplicates not allowed");
                  return false;
              }
          }
      }
      return true;
  }
  </code></pre>
  
  <p>These are my coding . I want to prevent entering of duplicate values in the kendo grid. Can anyone let me what I am doing is correct or Should I do something else. I want to stop duplicated values both in Create and Update even in my kendo grid.</p>