I use the DataManager with the ODataV4Adaptor to get data from an odata-service.
When I add a column which points to a nested property of the entity the adaptor does not automaticly add this to the $expand-part of the url, so the data for that column leaves blanc.
In EJ1 the adaptor adds this automaticly to the $expand-part of the url, but in EJ2 it doesn't.
Is this by design in EJ2?
mygrid.component.ts:
ngOnInit() {
this.data = new DataManager({
url: "https://server/odata/campaigns",
crossDomain: true,
adaptor: new OdataV4Adaptor()
});
this.columns = [
{ field: "id", headerText: "id", isPrimaryKey: true, width: 0, visible: false },
{ field: "code", headerText: "Code", width: 100 },
{ field: "name", headerText: "Name", width: 100 },
{ field: "createdOn", headerText: "Created On", width: 100, format: { type: 'datetime', format: "dd-MM-yyyy" } },
{ field: "createdBy.name", headerText: "Created By", width: 100 }
];
this.grid.columns = this.columns;
this.grid.dataSource = this.data;
}