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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SelectedItems get RowList truncated to 2 elements when PivotColumns.Count == 1

Thread ID:

Created:

Updated:

Platform:

Replies:

143160 Mar 6,2019 10:07 PM UTC Mar 21,2019 06:27 AM UTC WPF 4
loading
Tags: PivotGridControl
Carlos Fernando Consigli
Asked On March 6, 2019 10:07 PM UTC

I'm using SelectedItems from a PivotControl to generate a chart.
It turns out that when PivotColumns.Count == 1, the RowList of each element in SelectedItems can have up to 2 elements.
I'm attaching a screenshot that was taken from a sample you provided me in another post (https://www.syncfusion.com/forums/143135/selecteditems-in-pivot-control-is-always-null   http://www.syncfusion.com/downloads/support/forum/143135/ze/Carlos_CellSelectionDemo125496268  )
As you can see in the screenshot, when I set the pivot control to 3 PivotRows and 1 PivotColumns, the selected items are missing the value for the "State" dimension. 
Those elements should read:
Column : Canada - Amount ; Row : Bike - Bike.FY 2005 - Bike - Bike.FY 2005.British Columbia ; Value : 4605600
Column : Canada - Amount ; Row : Bike - Bike.FY 2005 - Bike - Bike.FY 2005.Brunswick ; Value : 6063300

In code, you cannot either tell apart the value that belongs to "British Columbia" from the one that belongs to "Brunswick". If you inspect each item with the debugger, you'll see that it has only 2 elements in RowList instead of 3.

I made some tests and apparently this ONLY happens when there is only ONE PivotColumn. Apart from the sample in the screenshot, I also tried a case scenario with 4 PivotRows and 1 PivotColumn, and the items still get only 2 elements in the RowList collection instead of 4.

In the case of 1 PivotRow and 1 PivotColumn it works ok.

Thanks for your support. 



Carlos Fernando Consigli
Replied On March 6, 2019 10:08 PM UTC

I forgot the screenshot, here it goes.

Attachment: RowsNotIncluded_539b4f2f.zip

Carlos Fernando Consigli
Replied On March 6, 2019 10:11 PM UTC

Correction, it actually should read:
Column : Canada - Amount ; Row : Bike - Bike.FY 2005 - Bike.FY 2005.British Columbia ; Value : 4605600
Column : Canada - Amount ; Row : Bike - Bike.FY 2005 - Bike.FY 2005.Brunswick ; Value : 6063300

Thirupathi Bala Krishnan [Syncfusion]
Replied On March 7, 2019 01:02 PM UTC

Hi Carlos, 

We are able to reproduce the reported issue - “Selected items are not returned properly when performing selection” and we will provide the patch file for the reported issue on 21st March, 2019. 


We appreciate your patience until then. 

Regards, 
Thirupathi B. 


Arulraj A [Syncfusion]
Replied On March 21, 2019 06:27 AM UTC

Hi Carlos, 

Thanks for your patience.  
  
We have fixed the below reported issue “Selected items are not returned properly when performing selection” in your reported version 16.4.0.42. 
   
Please find the patch file from the following location:     
     
V16.4.0.42  
Recommended approach – exe will perform automatic configuration          
Please find the patch setup here:                                
       
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment                           
Please find the patch assemblies alone from:           
      
Please find the Nugets from the below location:          
        
          
NOTE
You can change how you receive bug fixes by navigating to the following link and updating your preferences.
https://www.syncfusion.com/support/directtrac/patches       
        
Disclaimer:                         
Please note that we have created this patch for the version 16.4.0.42 specifically to resolve the issues reported in this forum #143160. If you have received other patches for the same version for other products, please apply all patches in the order received. This fix will be included in our 2019 Volume 1 main release which will be available in the end of March 2019.  

Arulraj A 


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.

Please sign in to access our forum

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon