I’ve implemented gantt according to this tuto : dhtmlx.com/blog/using-dhtmlx-ga … -rest-api/
I’ve added some variable to the task model :
public class Task
{
public int Id { get; set; }
[MaxLength(255)]
public string Text { get; set; }
public DateTime start_date { get; set; }
public int Duration { get; set; }
public DateTime end_date
{
get
{
return start_date.AddDays(+Duration);
}
}
public double Progress { get; set; }
public int SortOrder { get; set; }
public string type { get; set; }
public int? parent { get; set; }
[Required, DefaultValue("grey")]
public string color { get; set; }
public int? ProjectId { get; set; }
public virtual Project Project { get; set; }
public int? EmployeeId { get; set; }
public virtual Employee Employee { get; set; }
}
When i create or update a task:
-the database is updated
-the view (clientSide) is updated only for standard parameter, not for color, project, employee.
Is there a way to do that ?
thnaks