This is a migrated thread and some comments may be shown as answers.

how do I expand by default the first group in the header?

1 Answer 147 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hazzard
Top achievements
Rank 1
Hazzard asked on 02 Oct 2011, 04:32 PM

This visual snippet shows what my following xaml creates. Question. How can I have the Group Selector 'General Info' be expanded by default? Thank you. Greg

<telerik:RadGridView Name="rgvPSEProductInfo"    ShowGroupPanel="True"  AutoGenerateColumns="False" 
     Grouping="rgvPSEProductInfo_Grouping" >
        <telerik:RadGridView.GroupDescriptors>
             <telerikData:GroupDescriptor Member="PSEType" />
         </telerik:RadGridView.GroupDescriptors>
          <telerik:RadGridView.Columns>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding PSEType}" SortingState="None" Header="PSE Type"   >
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Keyword}" Header="Keyword"  />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding RequiredInfo}" Header="Required Info"  />
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>

 

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 05 Oct 2011, 08:57 AM
Hi Greg,

You could try to expand the group you want by calling ExpandGroup(IGroup group) method of the grid. I am sending you a sample project illustrating a possible approach for getting such a behavior. Will that solution suit your needs ?

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Hazzard
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or