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

Aggregate Functions formatting

1 Answer 43 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Yolanda
Top achievements
Rank 1
Yolanda asked on 17 Mar 2011, 01:34 PM
Hello Telerik team!

I have a grid view with several group descriptors, each one containing several aggregated functions defined like this :
<views:PricingRadGridView.GroupDescriptors>
                    <telerikData:GroupDescriptor Member="CampagneNom" SortDirection="Ascending" DisplayContent="Campagne">
                        <telerikData:GroupDescriptor.AggregateFunctions>
                            <telerikData:SumFunction  SourceField="MontantObjectif" Caption="Montant objectif : "/>
                            <telerikData:SumFunction  SourceField="ProvisionDisponible" Caption="Provision Disponible : "/>
                            <telerikData:SumFunction  SourceField="Facture" Caption="Facturé : "/>
                            <telerikData:SumFunction  SourceField="Solde" Caption="Solde : "/>
                            <telerikData:SumFunction  SourceField="ProvisionFinale" Caption="Provision finale : "/>
                            <telerikData:SumFunction  SourceField="MontantComptabilise" Caption="Montant comptabilisé :"/>
                        </telerikData:GroupDescriptor.AggregateFunctions>
                    </telerikData:GroupDescriptor>
                    <telerikData:GroupDescriptor Member="GammeNom" SortDirection="Ascending" DisplayContent="Gamme">
                        <telerikData:GroupDescriptor.AggregateFunctions>
                            <telerikData:SumFunction  SourceField="MontantObjectif" Caption="Montant objectif : "/>
                            <telerikData:SumFunction  SourceField="ProvisionDisponible" Caption="Provision Disponible : "/>
                            <telerikData:SumFunction  SourceField="Facture" Caption="Facturé : "/>
                            <telerikData:SumFunction  SourceField="Solde" Caption="Solde : "/>
                            <telerikData:SumFunction  SourceField="ProvisionFinale" Caption="Provision finale : "/>
                            <telerikData:SumFunction  SourceField="MontantComptabilise" Caption="Montant comptabilisé :"/>
                        </telerikData:GroupDescriptor.AggregateFunctions>
                    </telerikData:GroupDescriptor>
                    <telerikData:GroupDescriptor Member="GroupeClientNom" SortDirection="Ascending" DisplayContent="Type Client">
                        <telerikData:GroupDescriptor.AggregateFunctions>
                            <telerikData:SumFunction  SourceField="MontantObjectif" Caption="Montant objectif : "/>
                            <telerikData:SumFunction  SourceField="ProvisionDisponible" Caption="Provision Disponible : "/>
                            <telerikData:SumFunction  SourceField="Facture" Caption="Facturé : "/>
                            <telerikData:SumFunction  SourceField="Solde" Caption="Solde : "/>
                            <telerikData:SumFunction  SourceField="ProvisionFinale" Caption="Provision finale : "/>
                            <telerikData:SumFunction  SourceField="MontantComptabilise" Caption="Montant comptabilisé :"/>
                        </telerikData:GroupDescriptor.AggregateFunctions>
                    </telerikData:GroupDescriptor>


Values are placed on the grouping line one next to others. I would like to know if there's a way to place every Aggregate function under the culumn head it aggregates. In our exemple "<telerikData:SumFunction  SourceField="MontantObjectif" Caption="Montant objectif : "/>" should be under the "Montant objectif" RadGridViewDataColumn, as I show on the attached image.

Thanks for your help. Regards,
  Yolanda

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 17 Mar 2011, 01:44 PM
Hello Yolanda,

For the time being this is not supported out-of-the-box. As a possible workaround you may predefine the GridViewGroupRowStyle as demonstrated in the sample project in this forum thread. In the meantime I may encourage you to vote for the corresponding feature request logged into our Public Issue Tracking System. The more votes it gathers, the higher its priority gets.
 

Greetings,
Maya
the Telerik team
Tags
GridView
Asked by
Yolanda
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or