I have created an MVC ASP.NET 5 Web API project which uses DNX 4.5.1
I am trying to create a gantt chart in my .cshtml view file via the following code:
<div id="gantt">
@(Html.Kendo().Gantt<GanttData, DependencyViewModel>()
.Name("Gantt")
.DataSource(ds => ds
.Read(read => read
.Action("Tasks", "Home")
)
.Model(m =>
{
m.Id(f => f.TaskID);
m.ParentId(f => f.ParentID);
m.OrderId(f => f.OrderId);
m.Field(f => f.Expanded).DefaultValue(true);
})
)
.DependenciesDataSource(ds => ds
.Read(read => read
.Action("Dependencies", "Home")
)
.Model(m =>
{
m.Id(f => f.DependencyID);
m.PredecessorId(f => f.PredecessorID);
m.SuccessorId(f => f.SuccessorID);
m.Type(f => f.Type);
})
).Resizable(true)
)
</div>
The error comes from IHtmlHelper "not containing a definition" for Kendo even though Kendo.Mvc is in my project's references.
This identical code successfully generates a gantt chart in a ASP.NET 4.5.1 MVC 4 project, however.
Is there a way to create a Gantt chart in an ASP.NET 5 MVC application?
Thanks