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

Footer Aggregate result alignment

2 Answers 47 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Harri
Top achievements
Rank 1
Harri asked on 18 Feb 2014, 01:36 PM
I have tried in XAML to get footer aggregate results to be shown that way that caption is on left side and result is on right. If column width is changed value should stay to right. I have found some of examples but with no luck for final solution (only with static width I have got it close, but does not work when column widht change).

Here is little example what I want:
Start point:
_____________
| Count         90 |

And when column width is changed result should stay on right:
________________
| Count               90 |

2 Answers, 1 is accepted

Sort by
0
Accepted
Yoan
Telerik team
answered on 19 Feb 2014, 02:18 PM
Hello Harri,

In order to achieve your goal, you need to predefine the template of column's footer. You can check this online demo for a reference. The same example is available in your local copy of WPF demos. Then you can set GridViewFooterCell's TextAlignment property to Justify like so:
<Style TargetType="telerik:GridViewFooterCell">
            <Setter Property="TextAlignment" Value="Justify"/>
        </Style>

For your convenience, I have prepared a sample project showing you the approach.

Regards,
Yoan
Telerik
0
Harri
Top achievements
Rank 1
answered on 20 Feb 2014, 08:00 AM
Thanks, that was solution for my problem. Only thing was that I was using older components (2013.1..) and property TextAlignment was not found from old ones. Now I have new components updated in use.
Tags
GridView
Asked by
Harri
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Harri
Top achievements
Rank 1
Share this question
or