Completed
Last Updated: 03 Jun 2025 13:50 by ADMIN
Release 11.0.0 (2025 Q2)
Rich
Created on: 07 Jan 2025 08:37
Category: DataGrid
Type: Feature Request
1
DataGrid: Allow groups to be collapsed initially
In the current DataGrid implementation, the DataGrid will start with all the groups expanded. The only way to have any form of preference is to programmatically interact with the DataView after data is presented in the control  https://docs.telerik.com/devtools/maui/controls/datagrid/grouping/expand-collapse 

Requested Feature
A better approach that I am requesting a feature for is to have a property available for the DataGrid that sets this value ahead of time.

For example, you could add it as a BindableProperty on the GroupDescriptor class and on the GroupDefinition is to have an IsExapanded property.
1 comment
ADMIN
Didi
Posted on: 03 Jun 2025 10:02

Hi,

This is implemnet5ed with Telerik MAUI 11.0.0 version. 

Use the AutoExpandGroups bool property to specify whether the newly added groups should be automatically expanded. The default value is true.

When setting the AutoExpandGroups to False:

	<telerik:RadDataGrid x:Name="dataGrid" AutoExpandGroups="False"
                         ItemsSource="{Binding People}">
		<telerik:RadDataGrid.GroupDescriptors>
			<telerik:PropertyGroupDescriptor PropertyName="Department" />
		</telerik:RadDataGrid.GroupDescriptors>
	</telerik:RadDataGrid>

The groups will be collapsed initially. 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.