[app.component.html]
<ej-gantt id="GanttControl"
//...
(actionBegin)="actionBegin($event)">
</ej-gantt>
[app.component.ts]
actionBegin(args) {
if(args.requestType === "openEditDialog") {
var obj = $("# GanttControl").data("ejGantt");
var statusField = $("#" + obj._id + 'statusEdit').ejNumericTextbox('instance')
statusField.disable();
$("#" + obj._id + 'taskNameEdit').attr("disabled", "disabled");
$("#" + obj._id + 'taskNameEdit').css('opacity', '0.5');
}
},
|
[app.component.html]
<ejs-gantt id="ganttDefault"
//...
(actionComplete) = "actionComplete($event)" >
</ejs-gantt>
[app.component.ts]
public actionComplete(args: any): void {
if (args.requestType == 'openEditDialog') {
let durationField = (<EJ2Intance>(document.getElementById("ganttDefaultDuration"))).ej2_instances[0];
durationField.enabled = false;
}
} |