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

2 posts, 0 answers
  1. Hazzard
    Hazzard avatar
    24 posts
    Member since:
    May 2006

    Posted 02 Oct 2011 Link to this post

    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>

     

  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 05 Oct 2011 Link to this post

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

Back to Top