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

GridView Totals Aligment

2 Answers 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
FantasmaWeb
Top achievements
Rank 1
FantasmaWeb asked on 26 Aug 2010, 12:05 AM
Hello:

     I got a gridview that works fine with the totals but the aligment in the totals is set to the left and  i want set this aligment to the right side because the data in my gridview is aligment to the right,

i have tried to set the stack panel of the template to right but still doesn´t work

 

 

 

<grid:GridViewDataColumn.Footer>

 

 

 

 

<StackPanel Orientation="Vertical" Margin="0,0,0,0">

 

 

 

 

<gridView:AggregateResultsList ItemsSource="{Binding}">

 

 

 

 

<gridView:AggregateResultsList.ItemTemplate>

 

 

 

 

<DataTemplate>

 

 

 

 

<StackPanel Orientation="Horizontal"

 

 

 

HorizontalAlignment="Right"

 

 

 

VerticalAlignment="Center">

 

 

 

 

<TooltipElements:CanalTextBlockTab Text="{Binding FormattedValue}"

 

 

 

HorizontalAlignment="Right"

 

 

 

ShowFormatted="True"

 

 

 

ShowValueFormatted="False" />

 

 

 

 

</StackPanel>

 

 

 

 

</DataTemplate>

 

 

 

 

</gridView:AggregateResultsList.ItemTemplate>

 

 

 

 

</gridView:AggregateResultsList>

 

 

 

 

</StackPanel>

 

 

 

 

</grid:GridViewDataColumn.Footer>

 



Regards 
 
      Cesar from Mexico

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 26 Aug 2010, 07:39 AM
Hello FantasmaWeb,

 
You may try to use the Property of the column FooterTextAlignment and set it to the desired value. For example:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Number}"   
                           FooterTextAlignment="Right">
    <telerik:GridViewDataColumn.AggregateFunctions>
         <telerik:SumFunction Caption="Sum: " />                      
    </
telerik:GridViewDataColumn.AggregateFunctions>
</telerik:GridViewDataColumn>          


Sincerely yours,
Maya
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
FantasmaWeb
Top achievements
Rank 1
answered on 26 Aug 2010, 07:15 PM

it works like a charm, i dont know, how i didn´t see it before..

  Thanks a lot




 Regards


          Cesar
Tags
GridView
Asked by
FantasmaWeb
Top achievements
Rank 1
Answers by
Maya
Telerik team
FantasmaWeb
Top achievements
Rank 1
Share this question
or