|
<e-gantt-taskfields id="taskId" name="taskName" startDate="startDate"
duration="duration" progress="progress" dependency="predecessor" parentID="parentID">
</e-gantt-taskfields>
|
|
new GanttDataSource(){
taskId = 1,
taskName = "Project initiation",
startDate = new DateTime(2019, 03, 29),
endDate = new DateTime(2019, 04, 21),
resources = new List<ResourceModel>
{
new ResourceModel { ResourceId = 1, ResourceUnit = 70, ActivityId=40 },
new ResourceModel { ResourceId = 6 , ActivityId=40}
}
}
|
|
public class GanttDataSource
{
public int taskId { get; set; }
public string taskName { get; set; }
public DateTime? startDate { get; set; }
public DateTime? endDate { get; set; }
public string duration { get; set; }
public int progress { get; set; }
public string predecessor { get; set; }
public int? parentID { get; set; }
public List<ResourceModel> resources { get; set; }
public string customColumn { get; set; }
}
|
|
SL.No. |
Query |
Syncfusion Comments
| |
|
1 |
However, what if some problem occurs with executing the "batchUrl" call on controller side? In this case, UI should not update till the time all the data gets updated on server side. So how in client, I can notify and handle the server side errors? Pls advise. |
WE can make use of the actionFailure event to reload the old data, if some error occurs while updating the data in the back-end. The following code snippets demonstrate the solution.
Index.cshtml
We have also prepared a sample for your reference.
| |
|
2 |
Also, I didn't get point no. 3, you have mentioned in your previous reply. Can you pls elaborate on that? |
When rendering the Gantt with SQL database, we suggest using the self-referential data binding to maintain relationships. Because the complex json structure is very difficult to manage it in SQL tables, we need to write a complex queries and we have to write a complex algorithm to find out the proper record details while updating/deleting the inner level task in Gantt data source. We cannot implement both data binding for Gantt control and this is not a recommended way. To know more about this, please refer the Online Documentation link below.
Online Documentation: https://ej2.syncfusion.com/aspnetcore/documentation/gantt/data-binding/#limitations
|