@using Microsoft.AspNet.Identity @{ Layout = "_HomeLayout.cshtml"; } @ViewBag.Title @**@

@(Html.Kendo().Grid() .Name("Traininglist") .Columns(columns => { columns.Bound(l => l.TrainingID); //columns.Bound(l => l.Title); columns.Bound(l => l.Status); }) .Selectable(selectable => selectable.Mode(GridSelectionMode.Single).Type(GridSelectionType.Row)) .Editable(editable => editable.Mode(GridEditMode.InLine)) .HtmlAttributes(new { style = "height: 700px;" }) .Scrollable() .Sortable() .Filterable(filterable => filterable .Extra(false) .Operators(operators => operators .ForString(str => str .Clear() .Contains("Contains") .DoesNotContain("Does not contain") .StartsWith("Starts with") .EndsWith("Ends with") .IsEqualTo("Is equal to") .IsNotEqualTo("Is not equal to ") ) ) ) .Pageable(pageable => pageable .Refresh(true) .PageSizes(true) .ButtonCount(5)) .DataSource(dataSource => dataSource .Ajax() .Model(model => { model.Id(p => p.TrainingID); //model.Field(p => p.TotalCost).Editable(false); }) //.Events(e => e.RequestEnd("LoadState")) .PageSize(50) .Read(read => read.Action("GetTrainingList", "Home")) .Destroy(destroy => destroy.Action("DeleteItem", "Home")) ) ) }
*@