title: Kendo UI Grid Conditional editing
body: <p>I would like to disable DiscountPercentageMRC/NRC/Usage columns for certain CatalogProductId's. Please find below javascript for the grid. Any help would be greatly appreciated.</p>
  
  <pre class="lang-razor prettyprint-override"><code>&lt;h2&gt;Kendo Grid bound to ASP.NET MVC action methods&lt;/h2&gt;
  @* The DIV where the Kendo grid will be initialized *@
  &lt;div id="grid"&gt;&lt;/div&gt;
  &lt;script&gt;
    $(document).ready(function () {
       $("#grid").kendoGrid({
           columns: [
           { field: "CompanyId"},
           { field: "CompanyName" },
           { field: "DiscountPercentageMRC" },
           { field: "CatalogProductId"},
           { field: "DiscountPercentageMRC" },
           { field: "DiscountPercentageNRC" },
           { field: "DiscountPercentageNRC" },
           { field: "DiscountPercentageUsage"}
           ],
          height: 400,
          editable: true, // enable editing
          pageable: true,
          sortable: true,
          filterable: true,
          toolbar: ["create", "save", "cancel","edit"], // specify toolbar commands
          dataSource: {
              serverPaging: true,
              serverFiltering: true,
              serverSorting: true,
              pageSize: 10,
              batch: true, 
              editable: "inline",
              transport: {
                  read: {
                      url: "@Url.Action("ResellerDiscountsGet", "AccountDetail", new {                     BusOrdId = @ViewBag.Message })",
                      type: "POST",
  
                  }
              }
          },
  
          selectable: true
      });
  
       });
  
     &lt;/script&gt;
  </code></pre>