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

PivotGridControl with 1 PivotRow, 1 PivotColumn, 1 PivotCalc and 0 elements thows exception

Thread ID:

Created:

Updated:

Platform:

Replies:

144137 Apr 22,2019 12:13 AM UTC Apr 22,2019 09:15 AM UTC WPF 1
loading
Tags: PivotGridControl
Carlos Fernando Consigli
Asked On April 22, 2019 12:13 AM UTC

A pivotcontrol with the config below and NO elements in the source

throws the following exception

Width and Height must be non-negative.
at System.Windows.Size..ctor(Double width, Double height)
at System.Windows.Controls.ScrollViewer.OnLayoutUpdated(Object sender, EventArgs e)
at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()....


<syncfusion:PivotGridControl x:Name="pivotGrid1" ItemSource="{Binding ProductSalesData}" Margin="10" 
                   ResizePivotGridToFit="False"  
                                             VisualStyle="Metro"
                                             AllowSelection="True" ShowGrandTotals="False" ShowSubTotals="False" GrandTotalRowAlwaysVisible="True">
                <syncfusion:PivotGridControl.PivotRows>
                    <syncfusion:PivotItem FieldMappingName="Product" FieldHeader="Product" TotalHeader="Total"/>

                </syncfusion:PivotGridControl.PivotRows>
                <syncfusion:PivotGridControl.PivotColumns>
                    <syncfusion:PivotItem FieldMappingName="Country" FieldHeader="Country" TotalHeader="Total"/>
                </syncfusion:PivotGridControl.PivotColumns>
                <syncfusion:PivotGridControl.PivotCalculations>
                    <syncfusion:PivotComputationInfo CalculationName = "Total" Description = "Summation of values" FieldName = "Quantity" Format = "#,##0"/>
                </syncfusion:PivotGridControl.PivotCalculations>
            </syncfusion:PivotGridControl>


I'm attaching a sample (based in another sample you provided me) where you can see how it fails with numberOfRecords = 0 (in ProductSales.cs ). But if you set it to a number greater than 0, it works ok.

Attachment: Example_Error_fce56e9a.zip

Sabaridass Ramamoorthy [Syncfusion]
Replied On April 22, 2019 09:15 AM UTC

Hi Carlos,   
  
We are able to reproduce the reported issue –“ Exception was thrown when trying to make the grand total row always visible” Here we have provided private feedback link, we request you to log in to view the link further   
  
   
The fix will be available in our upcoming Volume 1 SP1 release which is scheduled to be rolled out at the mid of May, 2019. Would waiting for the official release is OK for you? Otherwise, we can provide a patch on May 6 , 2019.   
  
If you have any more specification replication procedure or a scenario to be tested you can add it as a comment in the portal. 

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.

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