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

GridView

1 Answer 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Naveen
Top achievements
Rank 1
Naveen asked on 30 Jul 2012, 01:36 PM
How to set a column group by default on load and disable the group by option in rendering mode
.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 31 Jul 2012, 01:55 PM
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.

Tags
GridView
Asked by
Naveen
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or