Support Nested Properties as Fields in Igx Grid
New DiscussionCurrently 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.
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
5 Created On
Apr 27, 2020 Last Post
5 years, 10 months ago