or

@(Html.Kendo().Grid<Client.Website.Models.ClientModel>().Name("ClientGrid") .HtmlAttributes(new { style = "height:100%; clear:both;table-layout: fixed;" }) .Columns(columns => { columns.Bound(c => c.ClientId).Hidden(); columns.Bound(c => c.Name); columns.Bound(c => c.IsActive).Width(80).Filterable(filter=>filter.Enabled(true)); columns.Bound(c => c.Notes)}) .DataSource(dataSource => dataSource .Ajax() .PageSize(20) .Read(read => read.Action("GetClients", "Client")) ) .Scrollable() .Pageable() .Sortable() .Selectable() .Filterable())<div id="example" class="k-content"> <table id="grid"> <colgroup> <col class="photo" /> <col class="details" /> <col /> </colgroup> <thead> <tr> <th> Picture </th> <th> Details </th> <th> ID </th> </tr> </thead> <tbody> <tr> <td colspan="3"></td> </tr> </tbody> <tfoot> <tr> <td> <input type="text"> </td> <td> <input type="text"> </td> <td> <input type="button" value="Add" /> </td> </tr> </tfoot> </table> <div id="pager"></div> <script id="rowTemplate" type="text/x-kendo-tmpl"> <tr data-uid="#: id #"> <td class="photo"> <span class="title">#: productName #</span> </td> <td class="details"> <span class="title">#: category #</span> </td> <td class="employeeID"> <a class="k-button k-button-icontext" href="\#" onclick="deleteValue(this)"><span class="k-icon k-delete"></span></a> </td> </tr> </script> <script id="altRowTemplate" type="text/x-kendo-tmpl"> <tr class="k-alt" data-uid="#: id #"> <td class="photo"> <span class="title">#: productName #</span> </td> <td class="details"> <span class="title">#: category #</span> </td> <td class="employeeID"> <a class="k-button k-button-icontext" href="\#" onclick="deleteValue(this)"><span class="k-icon k-delete"></span></a> </td> </tr> </script></div>var dataSource;$(document).ready(function () { dataSource = new kendo.data.DataSource({ autoSync: true, batch: true, transport: { read: { url: "@Url.Action("Read", "Home")", dataType: "json" }, create: { url: "@Url.Action("Save", "Home")", dataType: "json", type: "POST" }, update: { url: "@Url.Action("Save", "Home")", dataType: "json", type: "POST" }, destroy: { url: "@Url.Action("Delete", "Home")", dataType: "json" }, parameterMap: function (data, operation) { if (operation != "read" && data.models) { return { models: kendo.stringify(data.models) }; } } }, pageSize: 2 }); $("#grid").kendoGrid({ dataSource: dataSource, rowTemplate: kendo.template($("#rowTemplate").html()), altRowTemplate: kendo.template($("#altRowTemplate").html()), pageable: { previousNext: false }, editable: "inline" });});
function deleteValue(sender) { var products = dataSource.data(); dataSource.remove(products[0]); dataSource.sync();}