title: How to programmatically create a new row and put that row in edit mode in Kendo grid
body: <p>In my Kendo grid I am trying to put the 'create new item' button in the header (title) of the command column instead of the toolbar. Here is part of my grid definition:</p>
  
  <pre><code>var grid = $("#grid").kendoGrid({
  columns: [{ command: { name: "edit", title: "Edit", text: { edit: "", cancel: "", update: "" } },
  headerTemplate: "&lt;a onclick ='NewItemClick()' class='k-button k-button-icontext k-create-alert' id='new-item-button' title='Click to add a new item'&gt;&lt;div&gt;New Item&lt;/div&gt;&lt;/a&gt;"},
  </code></pre>
  
  <p>My question is: how to create a new row and put that row in edit mode in 'NewItemClick()'</p>