Values in Column Labels...

2 posts, 0 answers
  1. Juan
    Juan avatar
    2 posts
    Member since:
    May 2016

    Posted 13 May Link to this post

    Hello all, 

    wonder if someone can help me to find the solution for get 'PropertyAggregateDescription' into a 'ColumnGroupDescriptions'. This is my code:

            <pivot:LocalDataSourceProvider x:Key="LocalDataProvider" AggregatesPosition="Rows">
                    <pivot:PropertyGroupDescription PropertyName="Product Line"  />
                    <pivot:PropertyGroupDescription PropertyName="Value:Net Revenue - Total"  />
                    <pivot:PropertyAggregateDescription PropertyName="Net Revenue - Total" StringFormat="C" AggregateFunction="Sum" />
                    <pivot:PropertyAggregateDescription PropertyName="Cost Total" StringFormat="C" AggregateFunction="Sum"/>
                    <pivot:PropertyAggregateDescription PropertyName="GM $" StringFormat="C" AggregateFunction="Sum"/>
                    <pivot:PropertyAggregateDescription PropertyName="GM %" StringFormat="P" AggregateFunction="Sum"/>


    And if you see 'Problem.png' image is what i get. But I want something like the send image 'ThisIsWhatIWant.png', I can do it if I modify my Pivot with the FieldList in run time, just draggin the Values item into 'Column Labels', I need to have this in XAML or C# code, I think that it's something simple, but I just can't do it ):


    Can someone help me?

  2. Polya
    Polya avatar
    190 posts

    Posted 18 May Link to this post

    Hello Juan,

    The AggregatesPosition property indicates where the aggregate groups should be positioned. In your case it is set to Rows, which means that the aggregate groups will be displayed in rows.
    Changing this value to Columns should do the trick.

    <pivot:LocalDataSourceProvider x:Key="LocalDataProvider" AggregatesPosition="Columns">

    Hope this helps.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top