Skip to content

Commit 293ff63

Browse files
Merge pull request #1239 from telerik/didi/tdg-expand
describe auto expand groups
2 parents d30a0ba + 158f290 commit 293ff63

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

controls/treedatagrid/methods.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
---
2-
title: Methods
3-
page_title: .NET MAUI TreeDataGrid Documentation - Methods
2+
title: Expand and Collapse Items
3+
page_title: .NET MAUI TreeDataGrid Documentation - Expand Collapse Items
44
description: Learn about the Telerik UI for .NET MAUI TreeDataGrid methods and how to expand or collapse a parent node programatically.
55
position: 20
66
tags: methods
77
slug: treedatagrid-methods
88
---
99

10-
# .NET MAUI TreeDataGrid Methods
10+
# Expand and Collapse Items in .NET MAUI TreeDataGrid
1111

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:
1319

1420
* `Expand`(`object item`)—Expands the children of the item.
1521
* `Collapse`(`object item`)—Collapses the children of the item.

0 commit comments

Comments
 (0)