@{ Layout = "_HomeLayout.cshtml"; } @{ ViewBag.Title = "Change Control List"; }
PCRB List
@(Html.Kendo().Grid() .Name("PCRBList") .Columns(columns => { columns.Bound(l => l.IssueID) .ClientTemplate("#=MesaIdTitle#").Width("50px"); columns.Bound(l => l.StartDate).Format("{0:MM/dd/yy}").Width("50px"); columns.Bound(l => l.Owner).Width("50px"); columns.Bound(l => l.Title).Width("150px"); columns.Bound(l => l.ChangeLevel).Width("50px"); columns.Bound(l => l.PCRBStatus).Width("50px"); columns.Bound(l => l.StatusDate).Format("{0:MM/dd/yy}").Width("50px"); columns.Bound(l => l.Generations).Title("Affected Generations").Width("100px"); columns.Bound(l => l.ToolTypes).Title("Affected Tools").Width("100px"); columns.Bound(l => l.Processes).Title("Affected Processes").Width("100px").Encoded(false); columns.Bound(l => l.ActionItemResponsibility).Title("Responsibility for open actions").Width("150px").HtmlAttributes(new { style = "font-weight: bold; color: red;" }); }) .Selectable(selectable => selectable.Mode(GridSelectionMode.Single).Type(GridSelectionType.Row)) .Editable(editable => editable.Mode(GridEditMode.InLine)) .HtmlAttributes(new { style = "height:700px; width:100%; font-size: 11px" }) .Scrollable() .Sortable() .Resizable(r => r.Columns(true)) .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.IssueID); //model.Field(p => p.TotalCost).Editable(false); }) .PageSize(50) .Read(read => read.Action("GetChangeControlList", "Home")) //.Destroy(destroy => destroy.Action("DeleteItem", "Home")) ) )