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
description: Learn about the Telerik UI for .NET MAUI TreeDataGrid methods and how to expand or collapse a parent node programatically.
5
5
position: 20
6
6
tags: methods
7
7
slug: treedatagrid-methods
8
8
---
9
9
10
-
# .NET MAUI TreeDataGrid Methods
10
+
# Expand and Collapse Items in .NET MAUI TreeDataGrid
11
11
12
-
The [Telerik UI for .NET MAUI TreeDataGrid]({%slug datagrid-overview%}) exposes the following methods to expand and collapse the children of an item:
12
+
The [Telerik UI for .NET MAUI TreeDataGrid]({%slug treedatagrid-overview%}) lets you expand and collapse item either through the UI-by tapping on the expand/collapse icon or programmatically.
13
+
14
+
The TreeDataGrid allows you to collapse all items by setting the `AutoExpandGroups` (`bool`) property. The default value is `false`, which means, all items are expanded.
15
+
16
+
## Expand and Collapse Specific Items
17
+
18
+
The TreeDataGrid exposes the following methods to expand and collapse the children of an item:
13
19
14
20
*`Expand`(`object item`)—Expands the children of the item.
15
21
*`Collapse`(`object item`)—Collapses the children of the item.
0 commit comments