[html]
<ej-waitingpopup id="popup" ></ej-waitingpopup>
<div id="ganttParent">
<ej-gantt id="GanttControl" [dataSource]="dataManager" (load)="load($event)" (actionComplete)="actionComplete($event)" >
</ej-gantt>
</div>
[ts]
export class AppComponent {
public ganttData: any;
public dataManager:any;
constructor() {
this.dataManager = ej.DataManager(this.ganttData);
}
load(e: any) {
var obj = $("#popup").data("ejWaitingPopup");
obj.setModel({showOnInit: true,target: "#ganttParent"});
}
actionComplete(e: any) {
if(e.requestType == "create"){
var obj = $("#popup").data("ejWaitingPopup");
obj.hide();
}
}
} |
[TS]
export class AppComponent {
public ganttData: any;
public dataManager: any;
constructor() {
this.dataManager = new ej.DataManager({
url: "http://internaldemo.syncfusion.com:8072/",
async: true,
crossDoamin: true
});
}
public treeColumnIndex = 1;
load(e: any) {
$("#ganttParent").ejWaitingPopup({ showOnInit: true });
}
actionComplete(e: any) {
if (e.requestType == "create") {
var obj = $("#ganttParent").ejWaitingPopup("instance");
obj.hide();
}
}
} |
[TS]
export class AppComponent {
public ganttData: any;
public dataManager: any;
constructor() {
this.dataManager = new ej.DataManager({
url: "http://internaldemo.syncfusion.com:8072/",
async: true,
crossDoamin: true
});
}
} |
[TS]
export class AppComponent {
public ganttData: any;
public dataManager: any;
constructor() {
this.dataManager = new ej.DataManager({
url: "http://internaldemo.syncfusion.com:8072/",
async: true,
crossDoamin: true
});
}
} |
constructor() {
this.projectResources = this.getResources();
}
getResources() {
var resources = [];
var dataManager = new ej.DataManager({
url: "http://internaldemo.syncfusion.com:8094/",
async: false,
crossDoamin: true
});
var query = new ej.Query();
var dataObj = dataManager.executeQuery(query);
dataObj.done(function (e) {
resources = e.result;
});
return resources
} |