|
[app.component.ts]
class SerialNoAdaptor extends ODataV4Adaptor {
processQuery() {
// Executing base class processQuery function
var original = super.processQuery.apply(this, arguments);
console.log(original);
// Here you can customize the request queries as per your need and send it
return original;
}
}
export class AppComponent {
public parentData: Object[];
public childGrid: any;
ngOnInit(): void {
this.parentData = employeeData;
this.childGrid = {
dataSource: new DataManager({
adaptor: new SerialNoAdaptor()
}),
queryString: "EmployeeID",
allowFiltering: true,
filterSettings: { type: "Excel" },
-----
};
}
}
|