Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
[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;
}
} |