BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
I have an Error trying to use pageSettings (after some testing: more specifically using pageSizes creates the error) for GridComponent in my application and also trying to run the samples. Looks like a version conflict.
Now I used the simple sample "Pager with Page Size Dropdown" from:
https://helpej2.syncfusion.com/react/documentation/grid/paging
react-dom.production.min.js:121 TypeError: Cannot read properties of undefined (reading 'ListBase')
at t.createListItems (ej2-dropdowns.min.js:10:15374)
at t.renderItems (ej2-dropdowns.min.js:10:17524)
at t.
at t.notify (ej2-base.min.js:10:50632)
at t.trigger (ej2-base.min.js:10:11907)
at t.
at t.notify (ej2-base.min.js:10:50632)
at t.trigger (ej2-base.min.js:10:11907)
at t.setListData (ej2-dropdowns.min.js:10:10305)
at t.initialize (ej2-dropdowns.min.js:10:7846)
wf @ react-dom.production.min.js:121
c.callback @ react-dom.production.min.js:121
Fh @ react-dom.production.min.js:92
Ki @ react-dom.production.min.js:180
Ii @ react-dom.production.min.js:179
Ik @ react-dom.production.min.js:178
Sk @ react-dom.production.min.js:197
yb @ react-dom.production.min.js:196
Mi @ react-dom.production.min.js:189
db @ react-dom.production.min.js:79
Sk @ react-dom.production.min.js:198
yb @ react-dom.production.min.js:196
Oi @ react-dom.production.min.js:187
S @ react.production.min.js:17
U @ react.production.min.js:21
react-dom.production.min.js:79 Uncaught TypeError: Cannot read properties of undefined (reading 'ListBase')
at t.createListItems (ej2-dropdowns.min.js:10:15374)
at t.renderItems (ej2-dropdowns.min.js:10:17524)
at t.
at t.notify (ej2-base.min.js:10:50632)
at t.trigger (ej2-base.min.js:10:11907)
at t.
at t.notify (ej2-base.min.js:10:50632)
at t.trigger (ej2-base.min.js:10:11907)
at t.setListData (ej2-dropdowns.min.js:10:10305)
at t.initialize (ej2-dropdowns.min.js:10:7846)
The package.json:
Hi Mehdi Nabhani,
Query: GridComponent pageSettings throws Error
We have prepared a sample and tried to reproduce your mentioned issue at our end but it was unsuccessful. Please refer to the below sample for more information.
Sample Link: https://stackblitz.com/edit/react-bgumhd?file=index.js
If you are still facing the issue, please try to reproduce the issue in the above attached sample and If possible please share the issue reproducing grid sample and video demon, which help us to better understand your query.
Regards,
Hemanth Kumar S