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

show part of aggregate resut

7 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jimmy
Top achievements
Rank 1
Jimmy asked on 16 May 2016, 06:21 AM
I have a RadGridView which contains several columns. I have Sum function for part of the columns which show decimal number. Now when I drag the columns which do not have Sum function that can show the Count function result, how to archive this? Just add Count function to those columns will show both of the result.

7 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 17 May 2016, 03:05 PM
Hello Jimmy,

My suggestion would be to take a look at this forum thread and the attached project in it to verify whether the approach illustrated there might fit your requirements. 

Regards,
Maya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Jimmy
Top achievements
Rank 1
answered on 18 May 2016, 02:05 AM
I download the solution in the forum you provide, but i can not build successfully. why?
0
Maya
Telerik team
answered on 18 May 2016, 06:58 AM
Hello Jimmy,

Could you clarify what errors you get? 

Regards,
Maya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Jimmy
Top achievements
Rank 1
answered on 23 May 2016, 07:22 AM

I copied the whole style from the solution, seems like it can work. But do I need to use the whole style? It's too complicated, I only need to show specified aggregate result on GroupRow. Any also, I got error when expand the group row, can you please help?

 

0
Dilyan Traykov
Telerik team
answered on 25 May 2016, 09:03 AM
Hello Jimmy,

As the solution in the provided forum thread is quite old, it is possible that the provided control template has changed and that is the reason you're observing the aforementioned error.

I've taken the liberty of creating a sample project for you to have a look at based on the solution my colleague offered. However, it uses the new GroupRenderMode="Flat" which leads to better performance as described in our Grouping Modes article. Bear in mind that when using this render mode, you should target the GroupHeaderRow element instead of the GridViewGroupRow as I've done in the sample project.

Please have a look and let me know if this solution would for you.

Regards,
Dilyan Traykov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Jimmy
Top achievements
Rank 1
answered on 30 May 2016, 08:30 AM
the group footer has the same display as group header. i just want to show on header. is there any way?
 
0
Dilyan Traykov
Telerik team
answered on 30 May 2016, 11:48 AM
Hello Jimmy,

In order to hide the aggregate result from the footer cell, you will need to predefine the GridViewGroupFooterCell control template, use a similar approach as the one for the GroupHeaderRow and assign a custom converter for its ItemsSource binding.

Regards,
Dilyan Traykov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Jimmy
Top achievements
Rank 1
Answers by
Maya
Telerik team
Jimmy
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or