Load RadDataGrid with closed grouping header

3 posts, 0 answers
  1. aben
    aben avatar
    2 posts
    Member since:
    Jun 2017

    Posted 29 Nov 2017 Link to this post

    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. Yana
    Admin
    Yana avatar
    5013 posts

    Posted 30 Nov 2017 Link to this post

    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
  3. aben
    aben avatar
    2 posts
    Member since:
    Jun 2017

    Posted 30 Nov 2017 in reply to Yana Link to this post

    Thanks for the response.
Back to Top