- Home
- Forum
- ASP.NET MVC
- TaskSchedulingMode and predecessors issue
TaskSchedulingMode and predecessors issue
//#1
I found when the taskSchedulingMode property was set as auto Conditioning mode, this just check the subtasks.
When I drag subtask's start date before this parent's end date and they have FS relationship, that situation is allowed
But when the parent's auto scheduling event, the subtask will be checked and go back to the FS relationship should be.
//#2
And the Offset days will not be updated from task drag at Gantt UI.
If two tasks have FS relationship, I can drag the subtask's start date after the parent's end date and add interval days.
I checked the task args's data, the predecessors property is not changed still "ID + FS".
It can also go back the real args's data position when the parent's auto ordination.
// # 3
Finally, at this demo code:
https://www.syncfusion.com/kb/8005/render-gantt-with-entity-framework
The predecessors relationship set from Gantt UI (not the task detail dialog) will not go in the updateModifiedGanttRecords function.
The ActionComplete's args.requestType is "validatePredecessor" when the line focus on task, and when the relationship set success it will has "drawConnectorLine" requestType.
Thanks your help
Best regards
- Cancel, Keep the existing link
- Remove the link and move the task start date to edited date.
- Move the task start date to edited date and keep the link.
|
@(Html.EJ().Gantt("Gantt")
//...
.ClientSideEvents(cl => {
cl.ActionBegin("ActionBegin");
})
)
<script>
function ActionBegin(args) {
if (args.requestType == "validateLinkedTask") {
args.validateMode.preserveLinkWithEditing = false;
}
}
</script> |
|
[CSHTML]
function ActionComplete(args) {
//To update on indent,outdent, taskbar editing and predecessor drawn action
if (args.requestType == "indent" || args.requestType == "outdent" || args.requestType == "recordUpdate" || (args.requestType === 'save' && args.modifiedRecord) || args.requestType == "drawConnectorLine") {
var ganttRec = [];
// Dialog Editing
if (args.requestType == "save")
ganttRec.push(args.modifiedRecord);
else if (args.requestType == "drawConnectorLine")
ganttRec.push(args.currentRecord);
else
ganttRec.push(args.data); // Cell Editing
if (args.updatedRecords && args.updatedRecords.length)
ganttRec = ganttRec.concat(args.updatedRecords);
updateModifiedGanttRecords(ganttRec);
}
//..
} |
Hello, Suriyaprasanth
Thanks the Link about predecessor explained so clearly I ignored my fault, but there still some issues be found when I try it.
If I drag subtask's start date before the parent's end date with FS relationship, no matter how I choose the subtask's date has been changed.
The chooses of "closebutton", "cancelbutton", and "OK button with select 'Cancel, Keep the existing link' " will have the same result in the Validate Editing dialog.
The task's date will not cancel this operation, it will keep the existing link but just put the date at the parent behind in order to keep the changed task date, so in fact the changed task date will not be cancel.
And I found if click the "closebutton" in the Validate Editing dialog, the updateModifiedGanttRecords function is called many times, depending on the Gantt UI be edited times.
For the Query2, I found even I choice: "Move the task start date to edited date and keep the link." The Predecessors of Task Information dialog about Offset still "0 days", not be updated.
Thank you,
Best regards
- 3 Replies
- 2 Participants
-
JA Jacob
- Oct 31, 2017 09:28 AM UTC
- Nov 3, 2017 11:06 AM UTC