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.
Unfortunately, activation email could not send to your email. Please try again.

Collapsed records

Thread ID:

Created:

Updated:

Platform:

Replies:

121956 Feb 11,2016 08:27 AM Feb 12,2016 06:21 AM WPF 2
loading
Tags: PivotGridControl
Juraj Tomana
Asked On February 11, 2016 08:27 AM

Hi. 

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)?

Thanks.
Regards,
Juraj

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

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.

Regards,

Sabaridass R.

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

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.

Regards,
Sabaridass R.

CONFIRMATION

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.

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.

;