or
columns.Command(commands =>
// GET: Assets
public
ActionResult Index()
{
var assets = db.Assets.Include(a => a.Equipment).Include(a => a.Owner).Include(a => a.ServiceCompany).Include(a => a.Site);
return
View(assets.ToList());
}
@(Html.Kendo().Grid(Model)
.Name(
"Grid"
)
.Columns(columns =>
{
columns.Bound(p => p.Site).Title(
"Site"
).Width(130);
columns.Bound(p => p.Location).Title(
"Location"
).Width(130);
columns.Bound(p => p.Description).Title(
"Decriptopn"
).Width(130);
columns.Bound(p => p.InstallDate).Title(
"Install Date"
).Width(130);
columns.Bound(p => p.SerialNo).Title(
"Serial Number"
).Width(130);
})
.Pageable()
.Sortable()
.Scrollable(scr => scr.Height(430))
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.ServerOperation(
false
)
)
)
@(Html.Kendo().Grid<
AMScan.Models.Asset
>()
bundles.IgnoreList.Ignore(
"*.unobtrusive-ajax.min.js"
, OptimizationMode.WhenDisabled);