FIXED- Pivot Table Exception

I've broken this down to the simplest example I can come up with.  The attached project generates this exception:

If ShowToolTip is omitted or set to true, it generates this exception:

I am trying to fix code that worked as recently as 19.4.0.56


3 Replies 1 reply marked as answer

JC Jonah Coleman May 17, 2022 03:43 PM UTC

The code is just this (see attached solution):

@page "/"


@using Syncfusion.Blazor.PivotView

@using System.Collections.ObjectModel;

@using Production.Shared


<SfPivotView TValue="ProductionDataModel" @ref="thePivotView" ShowTooltip="false">

    <PivotViewDataSourceSettings DataSource="@filteredList">

        <PivotViewColumns>

            <PivotViewColumn Name="@nameof(ProductionDataModel.MonthName)"></PivotViewColumn>

        </PivotViewColumns>


        <PivotViewRows>

            <PivotViewRow Name="@nameof(ProductionDataModel.Status)"></PivotViewRow>

        </PivotViewRows>

        <PivotViewValues>

            <PivotViewValue Name="@nameof(ProductionDataModel.Hours)"></PivotViewValue>

        </PivotViewValues>

    </PivotViewDataSourceSettings>

</SfPivotView>


@code

{

    protected SfPivotView<ProductionDataModel> thePivotView;


    protected ObservableCollection<ProductionDataModel> filteredList = new ObservableCollection<ProductionDataModel>();


    protected override void OnInitialized()

    {

        filteredList.Add(new ProductionDataModel()

        {

            Status = "TESTING",

            Hours = 17,

            CompletionDate = new DateTime(2022, 05, 16),

        });


        base.OnInitialized();

    }

}



I also tried a simplified data model, same results.


Attachment: BrokenPivotTable_65a4fc7f.zip

Marked as answer

JC Jonah Coleman May 17, 2022 03:48 PM UTC

GAH, missing script:


Sp



AP AngelinFaithSheeba PaulvannanRajadurai Syncfusion Team May 18, 2022 07:48 AM UTC

Hi Jonah,


Please let us know if you have any other queries. We are always happy to assist you.


Regards,

Angelin Faith Sheeba.


Loader.
Up arrow icon