This is a migrated thread and some comments may be shown as answers.
Load RadDataGrid with closed grouping header
2 Answers 27 Views
This is a migrated thread and some comments may be shown as answers.
aben
Top achievements
Rank 1
aben asked on 29 Nov 2017, 10:18 PM

When the page loads all group headers are collapsed and the list of items below them are shown. Is there an option to load the page with the group headers closed and items under them hidden.

<Grid>
    <telerikGrid:RadDataGrid AutoGenerateColumns="False"
                             UserEditMode="Cell"
                             x:Name="grid">
        <telerikGrid:RadDataGrid.Columns>
            <telerikGrid:RadDataGrid.GroupDescriptors>
                <common:PropertyGroupDescriptor PropertyName="HeaderName"/>
            </telerikGrid:RadDataGrid.GroupDescriptors>
             
            <telerikGrid:DataGridTemplateColumn>
                <telerikGrid:DataGridTemplateColumn.CellContentTemplate>
                    <DataTemplate>
                        <Label Text="{Binding ItemName}" />
                    </DataTemplate>
                </telerikGrid:DataGridTemplateColumn.CellContentTemplate>
            </telerikGrid:DataGridTemplateColumn>
             
        </telerikGrid:RadDataGrid.Columns>
    </telerikGrid:RadDataGrid>
</Grid>

 

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 30 Nov 2017, 11:48 AM
Hi Aben,

Indeed, currently all the groups of the DataGrid are expanded by default.  We've already been working on exposing some methods for collapsing and expanding certain or all groups  - hopefully this functionality will be included in the upcoming official release (R1 2018).

I have created a feature request item in our feedback portal, you could subscribe to it and receive notifications for status changes at the following link:
DataGrid: Add support for expanding/collapsing groups programatically

Let me know if I can assist with anything else.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
aben
Top achievements
Rank 1
answered on 30 Nov 2017, 04:09 PM
Thanks for the response.
Asked by
aben
Top achievements
Rank 1
Answers by
Yana
Telerik team
aben
Top achievements
Rank 1
Share this question
or