SRSabaridass Ramamoorthy Syncfusion Team February 12, 2016 10:13 AM UTC
Thank you for contacting Syncfusion Support.
Expand and collapse states of PivotRows and PivotColumns is maintain by setting the property StatePersistenceEnabled as true.
We have maintained the states using the unique names. So, when you change the Item Source, a new set of fields and unique names comes into existence where the state cannot be maintained. To be clearer, field and unique names in one Item Source will differ from another.This is a valid behavior and not an issue.
SRSabaridass Ramamoorthy Syncfusion Team February 12, 2016 11:21 AM UTC
In the previous update, we missed adding the following point.
When changing the ItemSource, you can display the PivotRows and PivotColumns in collapsed states by calling the method “CollapseAllGroup()” in PivotGridControl. In order to achieve this behavior in your sample, call the method “CollapseAllGroup()” after assigning the ItemSource to the PivotGridControl.