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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Collapsed records

Thread ID:





121956 Feb 11,2016 01:27 PM UTC Feb 12,2016 11:21 AM UTC WPF 2
Tags: PivotGridControl
Juraj Tomana
Asked On February 11, 2016 01:27 PM UTC


When I change the ItemsSource, all records are expanded. How to change the default behavior, that all records will be collapsed at the begining (when I change ItemsSource)?


Sabaridass Ramamoorthy [Syncfusion]
Replied On February 12, 2016 10:13 AM UTC

Hi Juraj,

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.


Sabaridass R.

Sabaridass Ramamoorthy [Syncfusion]
Replied On February 12, 2016 11:21 AM UTC

Hi Juraj,

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.

Sabaridass R.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon