How do you create a Gantt Chart in ASP.NET 5?

4 posts, 1 answers
  1. Nizar
    Nizar avatar
    2 posts
    Member since:
    Apr 2016

    Posted 11 May Link to this post

    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

     

  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 12 May Link to this post

    Hi,

    You can find the current releases of the Kendo MVC Core widgets here:
    https://github.com/telerik/ui-for-aspnet-mvc-6-demos/releases

    The Gantt widget will be included in the next update, which will come after the RC2 of MVC Core is released.

    Regards,
    Bozhidar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Nizar
    Nizar avatar
    2 posts
    Member since:
    Apr 2016

    Posted 12 May in reply to Bozhidar Link to this post

    When can we expect a usable beta release or official release for the Gantt widget? (They say RC2 will be released mid-May of this year?)

     

    Cheers,

    Nizar Maan

  5. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 13 May Link to this post

    Hello,

    Once the RC2 rolls out we have to fix the current implementation of the wrappers to comply with all the breaking changes that the RC2 contains. Since we can't yet estimate how long this will take, I can't give you a concrete date, but most probably a couple of weeks to a month after the RC2 release.

    Regards,
    Bozhidar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready