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

Alignment within aggregated column footer

1 Answer 29 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ProXy
Top achievements
Rank 1
ProXy asked on 27 Jan 2016, 01:51 PM

Hello,

I have added a footer to my gridview using the SumFunction. The content of all regular cells is aligned right (numeric values) but I cannot change the alignment of the result in the footer. Everything placed in the footer is rendered with minimal width and ignoring the width of the column, therefor all alignment settings are ignored.

 Any advices how to align the content in the footer?

 Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan Nenchev
Telerik team
answered on 29 Jan 2016, 01:07 PM
Hi Stefan,

You can use the FooterTextAlignment property of the relevant column in order to achieve the desired effect. Please refer to the code snippet below:

 
<telerik:GridViewDataColumn
     DataMemberBinding="{Binding StadiumCapacity}"
FooterTextAlignment="Center"
TextAlignment="Center"
Header="Stadium"
DataFormatString="{}{0:N0}">
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction Caption="Sum: "/>
                    </telerik:GridViewDataColumn.AggregateFunctions>
 </telerik:GridViewDataColumn>
In case the aforementioned approach does not solve the issue at your end, would it be possible to provide me with the implementation from your side and a snapshot of the visual appearance.


Regards,
Stefan Nenchev
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
ProXy
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or