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

[Solved] Requisites For Grouping And Filtering

2 Answers 137 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.
João Loureiro
Top achievements
Rank 1
João Loureiro asked on 24 Jun 2010, 11:42 AM
Hi, I have a RadGridView defined like this:

 <telerik:RadGridView 
                ItemsSource="{Binding AllLinks}" 
                SelectionMode="Single" 
                ShowGroupPanel="True" 
                AutoGenerateColumns="False" 
                Visibility="{Binding AllLinksHasValues, Converter={StaticResource Visibility}}" 
                Grid.Row="2" 
                IsReadOnly="True"
 
                <telerik:RadGridView.Columns> 
                    <telerik:GridViewDataColumn 
                            Header="Type" 
                            IsGroupable="True" 
                            DataMemberBinding="{Binding Linktypedescription.Value}"/> 
 
                    <telerik:GridViewDataColumn 
                            Header="Description" 
                            DataMemberBinding="{Binding Linkdescription.Value}"/> 
 
                    <telerik:GridViewDataColumn 
                            Header="Source" 
                            DataMemberBinding="{Binding Linksource.Value}"/> 
                </telerik:RadGridView.Columns> 
 
            </telerik:RadGridView> 

However the options to filter don't appear on the columns header and when i try to drag the column header to the grouppanel i can't group any column.

My question is the binding data must implement any interface so i can group it? Why i can't group it?

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 24 Jun 2010, 11:46 AM
Hi João Loureiro,

Please ensure  your business object implements either  IComparable or IEquatable

Regards,
Pavel Pavlov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Nadav
Top achievements
Rank 1
answered on 23 Feb 2011, 11:11 AM
You also need to make sure that you implement GetHashCode() properly.

Nadav
Tags
GridView
Asked by
João Loureiro
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Nadav
Top achievements
Rank 1
Share this question
or