Page 1 of 1

Displaying master detail records using list divider and child records as a list items

Posted: Sat Jan 16, 2016 2:14 am
by Raj7069635

Hi,
I have rest response as a array of master records and each master record can have multiple child records. I am trying to display as below

Master 1 (as list divider)
Child of master1 (as a list item)
child of master 1 (as a list item)
Master 2 (as list divider)
Child of master2 (as a list item)
child of master 2 (as a list item)
Master 3 (as list divider)
Child of master3 (as a list item)
child of master 3 (as a list item)..... so on
how would I be able to achieve this? Quick response would be highly appreciated.
Thanks,
Raj


Displaying master detail records using list divider and child records as a list items

Posted: Sat Jan 16, 2016 10:53 am
by Alena Prykhodko

Hello Raj,

Here is the structure for the list component you need:

Root list item
List for children
Divider
Item for child