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

[Solved] GroupDescriptor and ShowGroupFooter

3 Answers 92 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.
MessyHeart
Top achievements
Rank 1
MessyHeart asked on 27 Jan 2011, 07:59 PM
Hi,

When ShowGroupFooter is set to True and GroupDescriptors are defined in XAML :
<telerikGridView:RadGridView x:Name="GridViewControl" AutoExpandGroups="True" AutoGenerateColumns="False" ShowGroupPanel="False" ShowGroupFooters="True" ItemsSource="{Binding DataSource}">
<telerikGridView:RadGridView.GroupDescriptors>
    <telerikData:GroupDescriptor Member="Descriptor1">
         <telerikData:GroupDescriptor.AggregateFunctions>
            <telerikData:SumFunction Caption="Total 1: " SourceField="Field1" ResultFormatString="{}{0:#,0}" />
            <telerikData:SumFunction Caption="Total 2: " SourceField="Field2" ResultFormatString="{}{0:#,0}" />
        </telerikData:GroupDescriptor.AggregateFunctions>
</telerikData:GroupDescriptor>
<telerikGridView:RadGridView.Columns>
    <!--columndefinition-->
</telerikGridView:RadGridView.Columns>
</telerikGridView:RadGridView>

I’m getting the following issue:

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Jan 2011, 09:43 AM
Hello Messy Heart,

In order to be able to reproduce the issue you reported and provide any valuable solution, I would need slightly more details. What version of RadGridView are you working with - our current official release Q3 2010 SP1 ? What is the type of the ItemsSource ? Do you use any asynchronous loading, any services for getting the data ? 
 

Kind regards,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
MessyHeart
Top achievements
Rank 1
answered on 28 Jan 2011, 07:47 PM
Hi Maya,

Thanks for your quick response.

The dll version we are using is 2010.2.924.1040. This was also an issue prior to we updated our app from using telerik rad control for silverlight 3 to version 4.

This GridView is defined as data template for a parent grid view's HierarchyChildTemplate. The view is desgined to use MVVM model. The Viewmodel exposes a public property of ObservableCollection type(say proerpty name is P). The item type of the collection has a proerty which is also of the ObservableColleciton type(say the proerpty name is C).  The parent gridview databinds to P and the child gridview databinds to C in XAML using ItemsSource attribute.

We do use asynchronous loading. When the view is initialized, a web request is sent to the backend service to retrieve data. The backend service is a TIBCO web service.  In the callback delegate, property P of ViewModel is set and NotifyPropertyChange event is fired.

Please let me know if you need more info.

Thanks!

MH
0
Maya
Telerik team
answered on 03 Feb 2011, 09:31 AM
Hi MessyHeart,

If you want the aggregate functions to be visible in the group footers, you need to define them for the corresponding columns. Setting them only in the AggregateFunctions for the GroupDescriptor will show them in the GroupHeaderRow, but not in the footers.
As far as the other issue is concerned ( scn1.JPG), I was not able to reproduce it. In case you need any additional assistance on that topic, it would be great if you could send us a sample project so that we could reproduce it locally and suggest any further. 
 

Best wishes,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
MessyHeart
Top achievements
Rank 1
Answers by
Maya
Telerik team
MessyHeart
Top achievements
Rank 1
Share this question
or