Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141290 | Dec 4,2018 03:34 PM UTC | Dec 17,2018 01:04 PM UTC | Angular | 11 |
![]() |
Tags: ejGantt |
[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
} |
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.