This is a migrated thread and some comments may be shown as answers.
Title is "undefined" for task list with no summaries
3 Answers 11 Views
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 06 Apr 2016, 12:29 PM

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);
        })
    )
)

 

3 Answers, 1 is accepted

Sort by
0
Derek
Top achievements
Rank 1
answered on 06 Apr 2016, 01:26 PM

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

0
Accepted
Bozhidar
Telerik team
answered on 07 Apr 2016, 06:04 AM
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!
 
0
Derek
Top achievements
Rank 1
answered on 16 May 2016, 01:45 PM
This appears to be fixed in 2016.2.504.  Thanks!
Tags
Gantt
Asked by
Derek
Top achievements
Rank 1
Answers by
Derek
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or