Is it possible to do a nested group in an grid?

1 Answer 36 Views
Grid
Jaime
Top achievements
Rank 2
Iron
Iron
Jaime asked on 12 Mar 2024, 07:38 PM

Is it possible to do nested grouping in a grid? And I don't mean a column grouping. Like handling a case where the grid can do a

file1
file2
folder1
  file3
  folder2
    folder3
      folder4
        file4
        file5

And do we have some sample code if this is possible?

 

Thanks!

 

J

1 Answer, 1 is accepted

Sort by
0
Accepted
Zornitsa
Telerik team
answered on 14 Mar 2024, 03:13 PM

Hi Jaime,

To achieve such kind of behavior with our Grid component, the developer could implement a Master-Detail Grid by utilizing the detail template directive of the component. For more information, I am linking below an article explaining the detail row template, where you can also find a runnable example for a demonstration of the functionality:

Nevertheless, based on the data visualization in the snippet that indicates a file structure, I would recommend utilizing the Kendo UI for Angular TreeList as a more suitable alternative for this case. This component would be better appropriate for your scenario since its purpose is to represent hierarchical data out of the box.    

Below you can find a StackBlitz example that illustrates a scenario, similar to yours, implemented with the TreeList component:

I hope that the provided information is helpful. I remain at your disposal in case any further questions arise.

Regards,
Zornitsa
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Jaime
Top achievements
Rank 2
Iron
Iron
commented on 14 Mar 2024, 04:29 PM

I actually discovered the TreeList and decided to use that. Thank you Zornitsa!!
Tags
Grid
Asked by
Jaime
Top achievements
Rank 2
Iron
Iron
Answers by
Zornitsa
Telerik team
Share this question
or