Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3160
Help with aggregator please
posted


Plamen, I'm trying to implement the gross profit aggregator I found here:
http://blogs.infragistics.com/forums/p/64405/326542.aspx

I also looked at this thread for examples:
http://community.infragistics.com/forums/p/45131/248927.aspx#248927
The above thread has a link to another sample.  This link does not work:
http://samples.infragistics.com/sldv/RunSamples.aspx?cn=pivot-grid#/pivot-grid/flatdata-aggregators

I can get the aggregator to work however the grid shows data. 
In the attached zip, click the "Toggle Measure" button.

PivotGridTest.zip
Parents
  • 8831
    Verified Answer
    posted

    Hi Sam,

    It seems that the specified cast (decimal to double) in Evaluate method is not valid because the instances of IAggregateable you process there operate over the properties of type decimal.

    After I've fixed the cast I can see the data in the grid.

    Plamen.

Reply Children
No Data