Title is "undefined" for task list with no summaries

4 posts, 1 answers
  1. Derek
    Derek avatar
    12 posts
    Member since:
    Jan 2011

    Posted 06 Apr Link to this post

    Hi,

    I have a simple list of tasks, and none of them are summary tasks.  The titles of the tasks are displayed correctly in the bars in the calendar, but the title that appears in the task list is "undefined".  I have attached a screenshot.  My Razor view is enclosed below.

    Is there a way to display the task title in the task list when there isn't a parent?

    Derek

     

    @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>(this.Model.Tasks)
        .Name("gantt")
        .Columns(columns =>
        {
            columns.Bound(c => c.Id).Title("ID").Width(50);
            columns.Bound(c => c.Title).Sortable(true);
        })
        .Editable(false)
        .Views(views =>
        {
            views.WeekView(weekView => weekView.Selected(true));
        })
        .Height(700)
        .DataSource(d => d
            .Model(m =>
            {
                m.Id(f => f.Id);
                m.ParentId(f => f.ParentId);
            })
        )
    )

     

  2. Derek
    Derek avatar
    12 posts
    Member since:
    Jan 2011

    Posted 06 Apr in reply to Derek Link to this post

    This actually has nothing to do with the fact that the task is a summary.  The only way I can get the title (or other fields) to display properly in the list (for a summary or a simple task) is to bind to the items by member name (in lower case):

    columns.Bound("title");

    The property on my task object is Title:

    public class TaskViewModel : IGanttTask
    {
        public string Title
        {
            get;
            set;
        }
    }

    The same applies for other standard properties like start/Start and end/End.

    It seems like binding by name ought to be case-sensitive.  And binding by Linq expression seems to be broken.

    Derek

  3. Kendo UI is VS 2017 Ready
  4. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 07 Apr Link to this post

    Hello,

    This is a known issue with the columns builder, and we will fix it in the next official release, which is scheduled for the middle of next month.

    Regards,
    Bozhidar
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Derek
    Derek avatar
    12 posts
    Member since:
    Jan 2011

    Posted 16 May in reply to Bozhidar Link to this post

    This appears to be fixed in 2016.2.504.  Thanks!
Back to Top
Kendo UI is VS 2017 Ready