GridView

2 posts, 0 answers
  1. Naveen
    Naveen avatar
    1 posts
    Member since:
    Feb 2009

    Posted 30 Jul 2012 Link to this post

    How to set a column group by default on load and disable the group by option in rendering mode
    .
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 31 Jul 2012 Link to this post

    Hi,

     You could define GroupDescriptor/ColumnGroupDescriptor initially as explained in our online documentation:

    <telerik:RadGridView
                                 Name="clubsGrid"
                                 ItemsSource="{Binding Clubs}">
                <telerik:RadGridView.GroupDescriptors>
                    <telerik:ColumnGroupDescriptor Column="{Binding Columns[\Name\], ElementName=clubsGrid}"
                                 SortDirection="Descending"  />
                </telerik:RadGridView.GroupDescriptors>
    </RadGridView>


    Then, if you would like to disable user to group, you can set the IsGroupable property for each GridViewDataColumn to "False":
    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" IsGroupable="False">

    I hope this is what you need.

    Greetings,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top