or

function updateGridButtons() { $(".k-grid-Details") .each(function () { styleGridButton(this, "View Details", "e-icon-viewDetails"); }); $(".k-grid-edit") .each(function () { styleGridButton(this, "Edit", "e-icon-customEdit"); }); $(".k-grid-delete") .each(function () { styleGridButton(this, "Delete", "e-icon-customDelete"); });}function styleGridButton(button, title, icon) { $(button) .removeClass("k-button-icontext") .addClass("k-button-icon") .attr("title", title) .html("<span class=\"k-icon " + icon + "\"></span>");}// Iterate thru .js files in KendoCustom to create kendo.custom.min.jsvoid Main(){ var files = Directory.EnumerateFiles(@"C:\Users\me\Desktop\KendoCustom\", "*.js"); var outputFile = @"C:\Users\me\Desktop\KendoCustom\kendo.custom.min.js"; if (File.Exists(outputFile)) File.Delete(outputFile); foreach (var fileName in files) { var contents = File.ReadAllText(fileName); contents = "/* " + fileName + " */ " + contents + "\n\n"; File.AppendAllText(outputFile, contents); }}<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(); }