Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Support for nested properties as fields in grid
posted

Currently the data grid only works on flat data. Are there any plans to support nested objects?

E.g

{

name: 'My Name',

address: { street: '2 Street', county: 'Kent', postcode: 'AA1 2BB'}

}

You can't put the field as address.street or address.postcode as that is not supported.

Having to flatten all the data before giving it to the grid is quite problematic especially if you also want to be able to edit data and then send that back so you need to keep it in the original structure.

The alternative suggested is to use a cell template as you can then access the row data and the nested property. However, this then doesn't work for filtering or sorting the data.