@(Html.EJ().Gantt("Gantt").
.ClientSideEvents(eve =>
{
eve.ActionComplete("actionComplete");
}
//….
function actionComplete(args) {
//To update on indent,outdent and taskbar editing action
if (args.requestType == "indent" || args.requestType == "outdent" || args.requestType == "recordUpdate") {
var data = $.extend({}, true, args.data.item);
$.ajax({
type: "POST",
url: '/Gantt/Update',
contentType: "application/json; charset=utf-8",
data: JSON.stringify(data),
dataType: "json",
});
} |
Thanks!