or
<li> @(Html.Kendo().AutoComplete() .Name("BenefitID") .Suggest(false) .MinLength(2) .DataSource( ds => ds.Read( r => r.Action("BenefitSearch", "Home").Data("setTemplateListFilters") ).ServerFiltering(true)).DataTextField("Description").HtmlAttributes(new { style="width:450px",placeHolder = "Search Existing Benefits" }) .Events(e=>e.DataBound("BenefitDataBound").Open("OnOpen")) ) </li>function BenefitDataBound(e, args) { bindGrid(this.dataSource.data()); } function bindGrid(data) { $("#gridResults").kendoGrid( { dataSource: { data: data, group: { field:"Category" } }, change: rowSelection, selectable: "single", height: 430, navigatable: true, scrollable: { virtual: false }, columns: [ "ID", "Name", "Description" ] } ); }@(Html.Kendo().Grid<Sbc.Domain.ArtifactSummary>().Name("ContentReport") .Columns(c => { c.Bound(x => x.Name); c.Bound(x => x.Category); c.Bound(x => x.Type); c.Bound(x => x.Version); c.Bound(x => x.LocalVersion).Title("Local Version"); }) .DataSource(dataSource => dataSource .Ajax() .PageSize(20) .ServerOperation(false) ) .Scrollable(x => x.Height(200)) .Sortable(sorting => sorting.SortMode(GridSortMode.SingleColumn)) )function BenefitDataBound(e, args) { var grid = $("#ContentReport").data("kendoGrid"); grid.dataSource.data(this.dataSource.data()); }function OnOpen(e) { e.preventDefault(); }transport: { create: { // get the rid off of the model object that // kendo ui automatically passes to the url function url: function () { return "/project/creategebouw/" }, dataType: "json", type: "POST", contentType: "application/json; charset=utf-8", data: { Project: { Id: PID } }, complete: function () { onCreateGebouw(); }, }, read: { url: function () { return "/project/FindAllGebouwen/" }, dataType: "json", type: "POST", contentType: "application/json; charset=utf-8", data: { Project: { Id: PID } } }, update: { // get the rid off of the model object that // kendo ui automatically passes to the url function url: function () { return "/project/editgebouw/" }, dataType: "json", type: "POST", contentType: "application/json; charset=utf-8", data: { Project: { Id: PID } }, complete: function () { onGebouwUpdate(); } },