Hi, do you have an example for split tasks with self-referential data using URL Adapter? I'm using a SQL Database.
I'm having trouble to replicate this example from ViewBag into URL Adapter (also updates/deletes/insert segments):
https://ej2.syncfusion.com/aspnetmvc/documentation/gantt/data-binding/#self-referential
https://ej2.syncfusion.com/aspnetmvc/Gantt/SplitTasks#/bootstrap4
Much appreciated.
Regards.
|
public GanttData Edit(GanttData value)
{
GanttData result = db.GanttDatas.Where(currentData => currentData.TaskId == value.TaskId).FirstOrDefault();
if (result != null)
{
result.TaskId = value.TaskId;
result.TaskName = value.TaskName;
result.StartDate = value.StartDate;
result.EndDate = value.EndDate;
result.Duration = value.Duration;
result.Progress = value.Progress;
result.Predecessor = value.Predecessor;
result.Segments = value.Segments;
db.SaveChanges();
return result;
}
else
{
return null;
}
}
|
Hi Monisha, thank you for your quick response.
I'm looking at the code, i see you use the Segments property in GanttData class, but there's no Segments field or table in the Database included in the project. Can't read or write split-task data. I'm attaching an image:
Thanks for your help.
Hi Mahalakshmi, thanks for your response. Will be waiting for the sample.
Regards,
Hi Lokesh, thanks for your response. Will be waiting for the sample.
Regards,
Hi Lokesh. Thank you very much. Will be waiting for the realease.
Hi Moshina. Thank you very much for the follow-up.
The initial request in this thread was for an example for segments CRUD. There was an example attached on september 20th but was incomplete. Please check my response with screenshots also on september 20th. Could you attach the example with segments CRUD using URL Adapter?
Thank you very much.
Hi Monisha, is the custom example available? Thank you very much.
Regards.
Hi Monisha, is the custom example availabe? Thank you very much.
Regards.