Please find attached sample project, in which we have shown our relational data properly in a grid to grid at N-Level of child without any custom code.
However, what we require is, main grid as Grid view (i.e. root level), and rest of all other child levels in card view with proper expand and collapse button. Please could you advise how we can achieve it?
In addition to the above, is it possible to have a Main grid (root level) as Grid and further child level (2 or 3 levels) as Card View and finally again Grid view at the last child level?
Note: Please go through the ReadMe.txt in the provided sample.
Please let me know in case more detail is required from my side.
As far as I understand, you need to use CardView as a master View. In this case, I suggest you use an approach illustrated in the How to use the LayoutView/CardView as a master View in master-detail mode example. I've modified your project to illustrate this approach. Please try it and let us know your results.