Welcome to the Angular feedback portal. We’re happy you’re here! If you have feedback on how to improve the Angular, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
This is related to a previously reported bug:
That issue seemed to be fixed, but I have found another scenario where it still occurs. Please see the following StackBlitz to reproduce:
The scenario is that the pivot grid and pivot field list controls are loaded with no data source initially and the "Defer Layout Updates" option is set to true. Then, selecting a data source will work the first time, but changing to a subsequent data source will cause the field list to stay the same as the first data source.
This does not occur if Defer Layout Updates is set to false.
This does not occur if the dataSourceSettings.dataSource is set at the time the controls are initialized.
The StackBlitz I created is intended to replicate the application we are using as closely as possible. You will notice that the "app" component consists of 2 buttons to set the data source to 2 unique data sources with different columns, as well as a radio button that lets you choose the type of grid you want (pivot vs a regular flat grid). The app then has a section to display the appropriate grid using an *ngIf. For this example I only created a subcomponent for the pivot grid. That subcomponent is called MyPivotGridComponent and that contains the Syncfusion grid and field list.
To reproduce this problem: