title: Kendo UI Grid custom command
body: <p>I am trying to setup a button to do a post back to a function using a Kendo UI grid. When I click the button I created it just passes null for the object. Here is what I have for my code...</p>
  
  <pre><code> @(Html.Kendo().Grid&lt;ModelObject&gt;()
      .Name("Grid")
      .Columns(columns =&gt;
      {
          columns.Bound(e =&gt; e.id);
          columns.Command(command =&gt; { command.Custom("do something").SendDataKeys(true).Click("functionName"); });
      })...
  </code></pre>
  
  <p>and the javascript is...</p>
  
  <pre><code>function functionName(e) {
      $.ajax({
          type: 'POST',
          url: '@Url.Action("Action", "Controller")',
          data: { item: e },
          dataType: 'json',
          cache: false,
          success: function (result) { }
      });
  }
  </code></pre>
  
  <p></p>