fieldListSpinnerElement

Hi, I have started using Syncfusion trial recently and was trying to use PivotTable following https://ej2.syncfusion.com/react/documentation/pivotview/getting-started/.

Everything went well until the FieldList section when I couldn't get it to work and notice the following error -


Please advice. Thanks in advance.



2 Replies

BT Beh Teik Hooi August 14, 2021 05:52 AM UTC

This is my App.js

import { FieldList, Inject, IDataOptions, PivotViewComponent } from '@syncfusion/ej2-react-pivotview';
import * as React from 'react';
import logo from './logo.svg';
import './App.css';
/*
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
rel='nofollow' href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
I have spoken
</a>
</header>
</div>
);
}
*/

let pivotData = [
{ 'Sold': 31, 'Amount': 52824, 'Country': 'France', 'Products': 'Mountain Bikes', 'Year': 'FY 2015', 'Quarter': 'Q1' },
{ 'Sold': 51, 'Amount': 86904, 'Country': 'France', 'Products': 'Mountain Bikes', 'Year': 'FY 2015', 'Quarter': 'Q2' },
{ 'Sold': 90, 'Amount': 153360, 'Country': 'France', 'Products': 'Mountain Bikes', 'Year': 'FY 2015', 'Quarter': 'Q3' },
{ 'Sold': 25, 'Amount': 42600, 'Country': 'France', 'Products': 'Mountain Bikes', 'Year': 'FY 2015', 'Quarter': 'Q4' },
{ 'Sold': 27, 'Amount': 46008, 'Country': 'France', 'Products': 'Mountain Bikes', 'Year': 'FY 2016', 'Quarter': 'Q1' }
];
class App extends React.Component {
constructor() {
super(...arguments);
this.dataSourceSettings = {
columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
dataSource: pivotData,
expandAll: false,
filters: [],
formatSettings: [{ name: 'Amount', format: 'C0' }],
rows: [{ name: 'Country' }, { name: 'Products' }],
values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
};
}
render() {
return <PivotViewComponent ref={d => this.pivotObj = d} id='PivotView' height={350} dataSourceSettings={this.dataSourceSettings} showFieldList={true}><Inject services={{FieldList}}/></PivotViewComponent>;
}
};

export default App;


MM Manikandan Murugesan Syncfusion Team August 16, 2021 09:17 AM UTC

 
We have checked the reported problem and we are unable to reproduce it at our end. Please refer to the following sample. 
 
 
If the problem still exists, kindly reproduce the problem in the provided sample and revert us (or) send your sample that replicating the problem. This would be helpful for us to investigate the reported problem at our end and provide the solution at the earliest. 
 
Regards, 
Manikandan. 


Loader.
Up arrow icon