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

[Solved] Aggregates and grouping

3 Answers 150 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.
Sonu
Top achievements
Rank 1
Sonu asked on 23 Sep 2010, 11:39 PM
Hi

I have a requirement to populating a grid dynamically using data tables. I am providing the column details along with aggregation and grouping details at column level in a config file. The problem is, the grid populates with proper grouping; a group level aggregate footer row is also created, but the aggregate value doesn't show up. When I remove the grouping columns from group panel and again dragged them back to group panel the group level aggregate value is shown.

However I am getting the column level aggregates as soon as grid loads for the first time with the grouping. It seems to be a improper event  handling issue.

By the way I am calculating the grouping first once the WCF returns the data and then performing aggregates on

RadGridView1_DataLoaded event. I have tried performing aggregates before grouping as well but then I am not getting any aggregate row.

 

 

Any suggestions??

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 29 Sep 2010, 02:33 PM
Hello Sonu,

Most probably the undesired behavior you are getting is a result of different time of loading your data. What you may try is to call the CalculateAggregates() method of RadGridView during DataLoaded event.
In case that does not help, I would need more details about your application or better - a sample project illustrating your exact requirements.
  

Sincerely yours,
Maya
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
MB
Top achievements
Rank 1
answered on 25 Oct 2010, 04:41 PM

I am having smilar issues adding groupdescriptors via code and not seeing the group footers with any value.

I created a test project and found:
- adding the groups first, then providing data  - works
- setting data/context, then adding groups - group footers are blank (column footers are fine)

I am guessing you already know this - so the question becomes, is a fix expected soon or should I continue to try to workaround this somehow (Rebind() and CalculateAggregates() has not worked).

Thx.
0
Maya
Telerik team
answered on 26 Oct 2010, 03:16 PM
Hi MB,

The scenario with setting the DataContext first, then the group descriptors and still the group footers remaining empty is not a know issue. Can you please provide us with more details about your settings so that we try to reproduce your exact scenario ? Any relevant code-snippet would be helpful.
 

Best wishes,
Maya
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
Tags
GridView
Asked by
Sonu
Top achievements
Rank 1
Answers by
Maya
Telerik team
MB
Top achievements
Rank 1
Share this question
or