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

ColumnFooter - Contentalignment

2 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 07 Oct 2010, 09:26 AM
Hello friends,

could you tell me how I can set the alignment for the content of the FooterCells?
I tried to set it with style. That works, but the result is not very fine (screenshot hc_466.jpg).

<Style TargetType="{x:Type telerik:GridViewFooterCell}">
    <Setter Property="HorizontalAlignment" Value="Right"/>
</Style>

How is it possible to fill out the whole cells with white background? Setting the background-property via style does not work.

Second question: When I use grouping and ColumnFooters (ShowGroupFooters ="False" ShowColumnFooters="True") the aggregatresults are shown in the header too. That's not very pretty. Is it possibly to disable this? (screenshot hc_465.jpg).

Thank you for your help!

Best regards
Markus

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 07 Oct 2010, 02:45 PM
Hello Markus,

You can use FooterTextAlignment property of the RadGridView to set the text alignment in GridViewFooterCells which will eliminate the issue of shifting backgrounds as in your screenshots.

Considering your second question you can achieve this effect through editing the template of GridViewGroupRow and there you can find the AggregateResultList and set its Visibility property to Collapsed.

I am attaching you an example that demonstrates the approaches above.

Greetings,
Vanya Pavlova
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
Markus
Top achievements
Rank 1
answered on 07 Oct 2010, 03:13 PM
Thank you so much, this works fine!
We will definitly buy your controls after the trial period. The support and the controls are amazing!

Best regards from Germany!
Tags
GridView
Asked by
Markus
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Markus
Top achievements
Rank 1
Share this question
or