I have a gantt on a page. The GanttTask object has Creator and Modifier on them and they need to be set on the client (so using javascript code).
I have attached to the save event like this
Html.Kendo().Gantt<ViewModel, DependencyViewModel>(),Name(
"gantt"
).Events(e => e.Add(
"onAdd"
).Save(
"onSave"
))
and the javascript code
function
onSave(e) {
e.task.ModifiedBy =
'@Html.Action("GetCurrentUser", "XXX")'
;
e.task.ModifiedDate =
new
Date(Date.now());
}
When I change a task everything works as expected. However if I change a child task by changing the end date that affects also the parent I need to set the Modifier on that parent too.
Is there an event called before updating the parents that I could use to set the Modifier ? How can I get the parents that are going to be updated in the onSave event?