Grid - no rows

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.count2,
  • value
    [
    • {
      • Id"6b013b4e-fc62-4f08-a3cd-4f9619326812",
      • IdDetailsnull,
      • Name"fsd",
      • Detailsnull
      },

    • {
      • Id"6b013b4e-fc62-4f08-a3cd-4f9619326814",
      • IdDetails"6b013b4e-fc62-4f08-a3cd-4f9619326814",
      • Name"dsd",
      • Details
        {
        • Id"6b013b4e-fc62-4f08-a3cd-4f9619326814",
        • Somethings"dsadasd"
        }
      }
    ]
}

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 ? 


1 Reply

MF Mohammed Farook J Syncfusion Team May 31, 2018 10:46 AM UTC

Hi Devw, 
  
Thanks for contacting Syncfusion support. 
  
  
We have validated the reported issue and we were able to reproduce. So we have considered as an issue  “Grid returns no records to display when binding the complex data with the null value of the first field” and it will be included in our next patch release. 
  
Regards, 
J Mohammed Farook 


Loader.
Up arrow icon