"PivotViewFormatSettings" giving 'Object reference not set to an instance of an object'

Whenever I include "PivotViewFormatSettings" in a Blazor Pivot Table the program fails to run with an error.  It appears to occur in ComponentBase.cs at "private async Task RunInitAndSetParametersAsync()" with the following:

System.NullReferenceException

  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Syncfusion.Blazor
  StackTrace:
   at Syncfusion.Blazor.PivotView.PivotViewFormatSettings.<OnInitializedAsync>d__17.MoveNext()


I can reproduce the error by following the code example in "https://blazor.syncfusion.com/documentation/pivot-table/getting-started" .  

I am using Syncfusion.Blazor version 27.1.50 and .NET 8.0.  The application is a Blazor Web App with Interactive Server Mode set to Server, Interactivity Location set to Per Page/Component, and the page set to '@rendermode InteractiveServer'.

If I omit  "PivotViewFormatSettings" the application runs and the Pivot Table is displayed.

Thanks in advance.


2 Replies

CB Christopher Bell September 26, 2024 05:34 PM UTC

Oops - My mistake.  I was placing <PivotViewFormatSettings> outside </PivotViewDataSourceSettings>

Problem solved!



JS Jayashree Suresh Anand Syncfusion Team September 27, 2024 07:22 AM UTC

Hi Christopher Bell,

We are glad that your problem is resolved. Please let us know if you need further assistance. 

Regards,

Jayashree 


Loader.
Up arrow icon