or
public class ProcesoEvaluacionDTO { [ScaffoldColumn(false)] public int ID { get; set; } [Required] [MaxLength(200)] public string Nombre { get; set; } [DisplayName("Fecha de cierre a evaluadores")] [Required] [DataType(DataType.Date), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)] public string FechaCierre { get; set; } [Required] [UIHint("GridForeignKey")] [DisplayName("Autorizado por")] public int AutorizadorID { get; set; } public ProcesoEvaluacionDTO() { }}public class ColaboradorDTO { public string NombreCompleto { get; set; } public int ID { get; set; } public ColaboradorDTO() { } }@{ IList<ColaboradorDTO> colaboradores = ViewBag.colaboradores; SelectList lista = new SelectList(colaboradores, "ID", "NombreCompleto");}@(Html.Kendo().Grid<ProcesoEvaluacionDTO>() .Name("ProcesosDeEvaluacionGrid") .Columns(columns => { columns.ForeignKey((p => p.AutorizadorID), lista); columns.Bound(p => p.Nombre); columns.Bound(p => p.FechaCierre); columns.Command(command => { command.Edit(); command.Destroy(); }).Width(300); } ) .ToolBar(toolbar => toolbar.Create()) .Editable(editable => editable .Mode(GridEditMode.PopUp) ) .Pageable(paper => paper.Refresh(true)) .Filterable() .Sortable() .Scrollable(w => w.Height(330)) .DataSource(dataSource => dataSource .Ajax() .PageSize(20) .ServerOperation(false) .Events(events => events.Error("error_handler")) .Model(model => { model.Id(p => p.ID); }) .Create(update => update.Action("EditingInline_Create", "ProcesoEvaluacion")) .Read(read => read.Action("EditingInline_Read", "ProcesoEvaluacion")) .Update(update => update.Action("EditingInline_Update", "ProcesoEvaluacion")) .Destroy(update => update.Action("EditingInline_Destroy", "ProcesoEvaluacion")) ) )@(Html.Kendo().Chart(Model.oeeList) .Name("widget-oee-breakdown") .Theme("black") .DataSource(ds => ds .Group(group => group.Add(model => model.resp_id)) ) .Series(series => { series.Column <double?, string> (model => model.total, categoryExpression: model => model.area_name).Color("White").Name("Downtime").Labels(labels => labels.Visible(false).Format("{0:n2}")).Stack(true); }) .ChartArea(ca => ca .Background("transparent") ) .CategoryAxis(axis => axis .MajorGridLines(lines => lines.Visible(false)) .Labels(model => model.Rotation(90)) ) .Legend(legend => legend .Visible(false) ) .ValueAxis(axis => axis .Numeric() .Max(100) .Line(line => line.Visible(false)) .MajorGridLines(lines => lines.Visible(false)) .Labels(false) ) .Tooltip(tooltip => tooltip .Visible(true) .Template("#= dataItem.resp_name #: #= kendo.format('{0:n2}', value) #") ))