You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/grid-three-level-hierarchy.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ I'm trying to see more than 1 level of hierarchy in my grid but i don't know how
16
16
17
17
## Solution
18
18
19
+
>tip If you don't know how many levels of nesting you have, consider using the [Treelist](https://demos.telerik.com/blazor-ui/treelist/overview) or [TreeView](https://demos.telerik.com/blazor-ui/treeview/overview) component instead. A grid is generally designed for flat data, while the TreeList and TreeView are designed for hierarchical data.
20
+
19
21
Put nested `<TelerikGrid>` instances in the `DetailTemplate` of their parents. This allows you to have multiple levels of nested grids. The example below shows a three-level hierarchy.
20
22
21
23
>note It is important to use named `context` variables, otherwise such code will not compile. Read more [here]({%slug nest-renderfragment%}).
0 commit comments