My code:....
var data = new ej.data.DataManager({
url: 'odata/Invoices',
adaptor: new ej.data.ODataV4Adaptor(),
crossDomain: true,
...
})
var grid = new ej.grids.Grid({
dataSource: data,
query: new ej.data.Query().expand("Details"),
columns: [
{ field: 'Id', headerText: 'Id', isPrimaryKey: true },
{ field: 'Name', headerText: 'Name' },
{ field: 'Details.Somethings', headerText: 'Somethings'}
]
})
JSON from server
...
{@odata.count: 2,
value: [
{Id: "6b013b4e-fc62-4f08-a3cd-4f9619326814",
IdDetails: "6b013b4e-fc62-4f08-a3cd-4f9619326814",
Name: "dsd",
}
]
}
When "Details" is null then "Grid" doesn't show a rows. When all invoices have 'Details', rows are visible. I want, if 'Details' is null then column in row is empty, when 'Details.Somethings' has value, show value. Any sugestion ?