Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147984 | Sep 30,2019 06:19 PM UTC | Oct 2,2019 04:43 AM UTC | Angular | 3 |
![]() |
Tags: ejGantt |
[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;
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.