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

'Clear Filter' null exception

1 Answer 77 Views
GridView
This is a migrated thread and some comments may be shown as answers.
GEB
Top achievements
Rank 1
GEB asked on 29 Jan 2009, 04:25 AM

With the latest binaries, I can now successfully build a simple example that displays a RadGridView with aggregates.  However, for each column header, an icon is shown that, when selected, produces a dropdown menu with a 'Clear Filter' option.  When this is selected, a null exception is generated.  Why?

I have attached the XAML where the RadGridView is defined:

            <gridview:RadGridView x:Name="radGridView" Grid.Row="1" AutoGenerateColumns="True"   
                                  HorizontalAlignment="Stretch">  
                <gridview:RadGridView.GroupDescriptions> 
                    <data:RadGroupDescription PropertyName="Category" SortDirection="Ascending">  
                        <data:RadGroupDescription.AggregateFunctions> 
                            <data:CountFunction FunctionName="TotalNames" SourceField="Name" Caption="Total names:"  /> 
                            <data:FirstFunction Name="FirstName" SourceField="Name" Caption="First name:" /> 
                        </data:RadGroupDescription.AggregateFunctions> 
                    </data:RadGroupDescription> 
                </gridview:RadGridView.GroupDescriptions> 
            </gridview:RadGridView> 
 

Additionally, if the user drags a column header into the drop zone, and the rows are re-grouped, the aggregates naturally disappear, but there seems to be no way for the user to get the aggregates back.  This behavior is also shown in your online aggregate sample.  Is this as designed?

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 30 Jan 2009, 05:14 PM
Hi Gary,

Thanks for pointing those problems. We will try to address them for the Q1 release.

Regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
GEB
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or