Multi-level master-details view

I'm trying to create a grid that contains multiple nested master-details views. For example, the main Orders grid has one or more LineItems. Clicking the [+] opens the row to view a grid of LineItems. Each line item contains one or more InventoryItems. Clicking the [+] on the LineItems grid opens the row to view a grid of InventoryItems.

My data is similar to the following (this is only an example):

TOrder:
  OrderNumber
  OrderDate
  LineItems[]

LineItem:
  ItemNumber
  Price
  Inventory[]

Inventory:
  Location
  QuantityAvailable

The first level works fine. I can open an Order line with no issue and it displays the LineItems grid. However, when I click on the LineItem, I get a "null object" error at InitializeDetailsViewDataGrid.

I have set AutoGenerateRelations on both grids (Orders is set in the designer; LineItems is set in the OrdersGrid.AutoGeneratingRelations event).

I'm do not know what I am missing, or if I'm even going about this the right way. Please help!

Kevin

Attachment: ObjectGrid_f1d2b996.zip

2 Replies 1 reply marked as answer

MA Mohanram Anbukkarasu Syncfusion Team July 9, 2020 03:27 PM UTC

Hi Kevin, 

Thanks for using Syncfusion support. 

We are currently working on this with high priority. We need two more working days to validate this. We will check and update the details on 13th July 2020. 
We appreciate your patience until then. 

Regards, 
Mohanram A. 



MA Mohanram Anbukkarasu Syncfusion Team July 13, 2020 02:02 PM UTC

Hi Kevin, 

Thanks for your patience.  

We have checked the reported issue “NullReferenceException occurs when expanding the grand child in DetailsView” and it is confirmed as a bug. We have logged a bug report in this regard. Please find the feedback link below. 


Kindly update your current Syncfusion version. Based on that we will provide patch for the fix or we will include the fix in our NuGet releases.  

Regards, 
Mohanram A. 


Marked as answer
Loader.
Up arrow icon