GridView Totals Aligment

3 posts, 0 answers
  1. FantasmaWeb
    FantasmaWeb avatar
    9 posts
    Member since:
    Jun 2006

    Posted 25 Aug 2010 Link to this post

    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. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 26 Aug 2010 Link to this post

    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
  3. DevCraft banner
  4. FantasmaWeb
    FantasmaWeb avatar
    9 posts
    Member since:
    Jun 2006

    Posted 26 Aug 2010 Link to this post

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

      Thanks a lot




     Regards


              Cesar
Back to Top