export class AppComponent {
public gridChildData= [
{EmployeeID: 15, OrderID: 12, ShipCity: "City1"},
{EmployeeID: 14, OrderID: 13, ShipCity: "City2"},
{EmployeeID: 13, OrderID: 14, ShipCity: "City3"}
];
public childGrid = {
dataSource: this.gridChildData,
queryString: "EmployeeID",
actionBegin : function (args) {
debugger;
},
columns: [
{ field: "OrderID", headerText: 'OrderID' },
{ field: "ShipCity", headerText: 'ShipCity', },
]
} |
export class AppComponent {
public gridChildData;
public childGrid = {
dataSource: ej.DataManager({
offline: true,
});
queryString: "EmployeeID",
actionBegin : function (args) {
},
columns: [
{ field: "OrderID", headerText: 'OrderID' },
{ field: "ShipCity", headerText: 'ShipCity', },
]
}
public editTemp;
public tool = { showToolbar: true, toolbarItems: ["add", "edit", "delete", "update", "cancel"] }
public gridData;
public dataManager;
ngOnInit() {
this.gridData = window.employeeView;
}
}
}
|