We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Top Summary - Exception

PivotGridControl when used in TopSummary Scenario produces an exception :
Exception thrown: 'System.NullReferenceException' in Syncfusion.PivotAnalysis.Base.dll
Object reference not set to an instance of an object. (Method Name : ProcessRowSums Class: PivotEngine)

Architecture used in my application:

1. get Data from server in the form of a list and Bind item source of pivotgrid to the list on click of a button
2. Refresh the data (here the error occurs in the topsummary scenario)
3. Collapse rows and columns in the data_refreshed event.

Hierarchy:
 8 rows hierarchical level and 2 in column hierarchical level

Thanks,

3 Replies

SR Sabaridass Ramamoorthy Syncfusion Team October 6, 2017 12:29 PM UTC

Hi Chaitanya, 

Thank you for contacting Syncfusion Support. 

We are unable to reproduce the reported issue – “Exception thrown when using the layout as TopSummary”. We have tested the reported scenario in our working sample which was prepared based on the architecture shared in your previous update. 

We have prepared the sample with the below aspects. 
  1. Binding a list of data to items source of PivotGrid when clicking the button (Refresh).
  2. Changing the layout as TopSummary through Combo-Box.
  3. 8 items used in PivotRows and 2 items in PivotColumns.

Please find our working sample from the following location. 
 
IMPORTANT NOTE: 
1. Can you please provide your working sample or modify the shared sample to reproduce the reported issue?   

2. Also please let us know your product version along with the sample, so that it would be helpful for us to proceed further. 

Regards, 
Sabaridass R. 



CH chaitanya October 9, 2017 02:42 PM UTC

In the example you've provided, please add the following line

this.Pivot.PivotEngine.EnableOnDemandCalculations = true; to the constructor of the MainWindow.


It will generate the specified exception.



TB Thirupathi Bala Krishnan Syncfusion Team October 10, 2017 12:11 PM UTC

Hi Chaitanya, 
Thanks for your interest in Syncfusion components.   
We could reproduce the reported issue at our end. A support incident has been created under your account and we request you to login into our Direct Trac support system for further updates on this issue. Our Direct Trac support system can be accessed from the following link:   
 
Regards, 
Thirupathi B. 
 


Loader.
Live Chat Icon For mobile
Up arrow icon