Current filter:
                                You should refresh the page.
                                  • Hi , 


                                    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. 

                                    Regards,
                                    Shrirang

                                1 Solution

                                Creation Date Importance Sort by

                                Hi,

                                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.

                                • Shrirang Pendharkar 02.06.2019
                                  Hi ,


                                  I want Gridview as Master View and rest all child as Cardview or the combination of both. Also, the sample has an error regarding column info. 
                                  Please let me know in case more detail is required from my side. 

                                  Regards,
                                  shrirang

                                • Igor (DevExpress Support) 02.06.2019

                                  Hi,

                                  To use the CardView as a master view, create a MasterDetailHelper instance and pass the master view and the required detail view type to a constructor. Then, call the MasterDetailHelper.CreateDetail method. I tested the attached modified project once again and it works as expected on my side. I've recorded a video to illustrate this.


                                  ->Also, the sample has an error regarding column info. 
                                  Could you illustrate how to reproduce this issue in the Que_RelationalNLevelCardView_mod project? If you mean the How to use the LayoutView/CardView as a master View in master-detail mode example, make sure that the appropriate brunch (13.1.4+) is selected.


                                  I look forward to your results.

                                • Shrirang Pendharkar 02.12.2019
                                  Hi Igor,

                                  Please find the updated sample. We want to set the hierarchy of child CardView to N-level (it could be dynamic). 
                                  Let me know if more detail is required from my side.


                                  Regards,
                                  Shrirang
                                • Igor (DevExpress Support) 02.12.2019

                                  Hi,

                                  You can use CardView at any level by using the GridControl.LevelTree property and approach illustrated in the How to use the LayoutView/CardView as a master View in master-detail mode example .
                                  I've recorded a video to illustrate this.

                                  I would like also to note that the How to use the LayoutView/CardView as a master View in master-detail mode example uses PopupContainerEdit and creates a new GridControl to display a CardView's child view:

                                  [C#]
                                  public GridControl DetailGrid { get { if (detailGrid == null) { detailGrid = CreateGrid(); detailGrid.MainView = DetailView; } return detailGrid; } } private GridControl CreateGrid() { GridControl grid = new GridControl(); grid.Dock = DockStyle.Fill; return grid; }
                                  Thus, in order to modify subsequent levels, you need to work with this grid instead of your main grid.