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

[Solved] Q3 Group Aggregates Broken

11 Answers 124 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.
MiddleTommy
Top achievements
Rank 1
MiddleTommy asked on 16 Nov 2010, 05:47 PM
I read through the breaking changes of the Q3 release and now I need some help.

When setting the groups in xaml like so
<t:RadGridView.GroupDescriptors>
    <t:GroupDescriptor Member="DateIn"/>
</t:RadGridView.GroupDescriptors>

The aggregate functions are not calculated on in the group footers. They were calculated OK in the Q2 releases. I saw another post about having to set the aggregate functions in code behind when grouping in code behind. That may be the answer however the group is set in xaml and there is no event fired unless the UI creates the group. What is the suggestion for this scenario in the Q3 release?

If I create the group manually in the UI all aggregates calculate and are shown. However I want to group on a hidden column and dont want to show the grouppanel to the user.

11 Answers, 1 is accepted

Sort by
0
Accepted
Yavor Georgiev
Telerik team
answered on 16 Nov 2010, 05:52 PM
Hi MiddleTommy,

 Do you define your columns in XAML? If so, you need to move the GroupDescriptors element after the Columns element in your XAML.

Best wishes,
Yavor Georgiev
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
0
MiddleTommy
Top achievements
Rank 1
answered on 16 Nov 2010, 07:52 PM
That did the trick,

But now I am noticing that when you have groups set up then you clear the DataSource and repopulate it with new or fresh data; The groups only show the first item placed in the group. All other rows are hidden untill you do a Rebind()

My ItemsSource is an ObservableCollection<T>.
0
Yavor Georgiev
Telerik team
answered on 16 Nov 2010, 07:54 PM
Hello MiddleTommy,

 Do you set the ItemsSource of RadGridView to null, or you Clear() your ObservableCollection?

Best wishes,
Yavor Georgiev
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
0
MiddleTommy
Top achievements
Rank 1
answered on 16 Nov 2010, 08:00 PM
in my ViewModel I call Clear on the ObservableCollection.

This also happens when the Collection is freshly loaded. Only in Q3 not Q2 sp1
0
Yavor Georgiev
Telerik team
answered on 17 Nov 2010, 12:32 PM
Hello MiddleTommy,

 I see. Unfortunately, we have been unsuccessful so far in replicating this issue. Could you please open a support ticket and attach a project that demonstrates this behavior?

All the best,
Yavor Georgiev
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
0
MiddleTommy
Top achievements
Rank 1
answered on 19 Nov 2010, 07:55 AM
I posted a sample sln in the PITS that reproduces the problem
0
Yavor Georgiev
Telerik team
answered on 19 Nov 2010, 12:12 PM
Hello MiddleTommy,

 Thank you. I'll let you know in this thread as soon as we have any results.

Greetings,
Yavor Georgiev
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Yavor Georgiev
Telerik team
answered on 19 Nov 2010, 01:43 PM
Hi MiddleTommy,

 We have successfully reproduced and identified the issue. However, a fix for this will take some time and so I cannot commit to a specific timeframe. I have opened a PITS issue, whose progress you can track here. I'm awarding you telerik points for your assistance in discovering this bug.

Sincerely yours,
Yavor Georgiev
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Accepted
Yavor Georgiev
Telerik team
answered on 19 Nov 2010, 01:57 PM
Hi MiddleTommy,

 I forgot to add that there is a workaround - you can use RadObservableCollection<>, call its SuspendNotifications() method before you start adding items and then call its ResumeNotifications() method after you are done adding items. You only need to do this when you are performing a bulk add operation on a grouped grid.

Greetings,
Yavor Georgiev
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
MiddleTommy
Top achievements
Rank 1
answered on 19 Nov 2010, 05:25 PM
Thank you so much.
This work around is awesome. Everything is up and running.
The Telerik Reporting Support is sooo slow compared to you. They take days if not weeks to respond.
0
MiddleTommy
Top achievements
Rank 1
answered on 19 Nov 2010, 05:30 PM
Also I think the Sorting and Group Aggregate Calculation problems I had are related to this Bulk Insert bug.
This work around seems to have fixed them too. I'll let you know otherwise.
Tags
GridView
Asked by
MiddleTommy
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
MiddleTommy
Top achievements
Rank 1
Share this question
or