Class GanttDataOperations
GanttDataOperation class to update parent, child and other dependent records on CRUD operations.
Inheritance
System.Object
GanttDataOperations
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.dll
Syntax
public static class GanttDataOperations : Object
Methods
UpdateDependentRecords<T>(SfGantt<T>, IQueryable<T>, T)
Validates the start date and end date of dependent tasks with current edited task data and returns the collection of resultant data.
Declaration
public static List<T> UpdateDependentRecords<T>(SfGantt<T> parent, IQueryable<T> datasource, T updatedData)
Parameters
Type | Name | Description |
---|---|---|
SfGantt<T> | parent | Instance of Gantt chart. |
System.Linq.IQueryable<T> | datasource | Input data source against which dependent tasks needs to be validated. |
T | updatedData | Edited task data. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<T> | List - updated records. |
Type Parameters
Name |
---|
T |
Remarks
When data is loaded on demand in gantt chart, only current view port data is available to Gantt Chart. Hence during CRUD operations, Gantt Chart cannot identify the dependent tasks which edited data affects. Using this method, we can identify the dependent tasks data in server end and update it.