title: How to enable create, while also disabling edit for a Kendo Grid
body: <p>Is it possible to enable only inserting new records in Kendo grid, but disable editing records?</p>
  
  <p>Best I could do is onDataBound remove "Edit" buttons in JavaScript.
  I tried setting <code>Editable(ed =&gt; ed.Enabled(false))</code> but I get errors during runtime.</p>
  
  <pre><code>@(Html.Kendo().Grid(Model)    
      .Name("Grid" + guid)
      .HtmlAttributes(new { style = "margin:20px" })
      .Columns(columns =&gt;
      {
          columns.Bound(p =&gt; p.Id).Hidden(true);
          //a few more columns
  
          columns.Command(command =&gt;
              {
                  command.Edit().Text(Resources.KendoEdit).UpdateText(Resources.KendoUpdateText).CancelText(Resources.KendoCancelText);
                  command.Destroy().Text(Resources.KendoDestroy);
              }).Title(Resources.KendoCommands).Width(180);
  
      })
      .ToolBar(toolbar =&gt; toolbar.Create().Text(Resources.KendoToolbarCreate))
      .Editable(editable =&gt; editable
          //.Enabled(false)
          .Mode(GridEditMode.InLine)
          .DisplayDeleteConfirmation(false)
      )
      .DataSource(dataSource =&gt; dataSource
          .Ajax()
          .ServerOperation(false)
          .Events(events =&gt; events.Sync("sync").Error("error"))
          .Model(mod =&gt; mod
              .Id(p =&gt; p.Id)
          )
          .Model(mod =&gt; mod
              .Field(p =&gt; p.OldRoleId).Editable(false)
          )
  
          .Read(read =&gt; read.Action("ChangeRole_Read", "ChangeRole"))
          .Create(update =&gt; update.Action("ChangeRole_Create", "ChangeRole"))
          .Update(update =&gt; update.Action("ChangeRole_Update", "ChangeRole"))
          .Destroy(update =&gt; update.Action("ChangeRole_Destroy", "ChangeRole"))
      )
      .Sortable()
      .Filterable(filterable =&gt; filterable
          .Extra(true)
          .Operators(operators =&gt; operators
              .ForString(str =&gt; str.Clear()
                  .StartsWith(Resources.KendoFilterStartsWith)
                  .IsEqualTo(Resources.KendoFilterIsEqualTo)
                  .IsNotEqualTo(Resources.KendoFilterIsNotEqualTo)
                  .Contains(Resources.KendoFilterContains)
                  .DoesNotContain(Resources.KendoFilterDoesNotContain)
                  .EndsWith(Resources.KendoFilterEndsWith)
              )
          )
          .Messages(mess =&gt; mess
              .Info(Resources.KendoFilterMsgInfo)
              .And(Resources.KendoFilterMsgAnd)
              .Or(Resources.KendoFilterMsgOr)
              .Filter(Resources.KendoFilterMsgFilter)
              .Clear(Resources.KendoFilterMsgClear)
          )
      ) 
      .Scrollable()
      .Pageable(pg =&gt; pg
          .Refresh(true)
          .Messages(ms =&gt; ms
              .First(Resources.KendoPageableFirst)
              .Last(Resources.KendoPageableLast)
              .Next(Resources.KendoPageableNext)
              .Previous(Resources.KendoPageablePrevious)
              .Empty(Resources.KendoPageableEmpty)
              .Display(Resources.KendoPageableDisplay)
          )
      )
      .Events(ev =&gt; ev
          .Edit("edit")
          .Save("save")
          .DataBound("dataBound")
      )
  )
  </code></pre>