GridComponent: Cannot convert undefined or null to object at Function.keys

Hello,

we are using Grid Component in Angular 10 ("@syncfusion/ej2-angular-grids": "^18.4.49") and we are experiencing a very strange problem.
We are receiving tons of errors (the amount of the errors is growing while you stay on the page, sometimes become over than 100) like this one:

Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at ComponentBase.push.HJ9Y.ComponentBase.ngAfterContentChecked (component-base.js:233)
    at GridComponent.ngAfterContentChecked (ej2-angular-grids.js:535)



This is the grid that we are showing:



In attachment you can find the component source code.

Thanks!

Pierpaolo Marturano









Attachment: specialtieslist_88b6767d.zip

11 Replies 1 reply marked as answer

PG Praveenkumar Gajendiran Syncfusion Team April 9, 2021 02:12 PM UTC

Hi Pierpaolo,

Thanks for contacting Syncfusion support.

Based on your provided information, we have prepared a Grid sample with using setCulture method to set culture in Grid and checked your reported issue at our end, but we are not able to reproduce the reported issue and Grid feature is working properly at our end. Please check the below sample, screenshot and documenation for your reference.

Sample: https://www.syncfusion.com/downloads/support/forum/164250/ze/my-app_(2)490121019.zip 

Screenshot:  
 
So please share us the below information that will be helpful to validate further on this,  
1)                 Let us know the replication procedure for reproducing the problem with Video demonstration to understand it better. 
2)                 If possible share us a simple sample to replicate the problem or try reproducing it in the above provided sample. 

Please get back to us with the requested details which will be helpful for us to validate the reported issue at our end and provide solution as early as possible 

Regards,
Praveenkumar G 


Marked as answer

JC Jeremy Carter April 16, 2021 02:36 AM UTC

I am having the same issue with all of our Grids. Using latest version 19.1.56




JC Jeremy Carter April 16, 2021 05:35 AM UTC

Got it sorted. Culture/Locale issue.


AG Ajith Govarthan Syncfusion Team April 19, 2021 03:04 PM UTC

Hi Jeremy, 

Thanks for the update. 

We are happy to hear that your issue has been resolved. 

Please get back to us if you need further assistance. 

Regards, 
Ajith G. 




SF Steve Furner May 4, 2021 01:56 PM UTC

Hello Jeremy Carter,

could you tell me what exactly was the issue there? I have the `same problem and can't get it resolved.

Thanks!


MH Martin H. May 5, 2021 02:12 PM UTC

Hi,

Jeremy Carter we would be also glad if you will tell us, where exactly was the issue and how did you resolved it. We have the same problem when calling grid.refreshColumns() or even when calling cd.detectChanges before the refreshColumns().

When using ej2-angular-grids: 19.1.55 together with ej2-angular-base: 19.1.54 it is working. When using latest versions, errors are there - so it was introduced in newer minor version without change on our side.

Thanks!


AG Ajith Govarthan Syncfusion Team May 5, 2021 03:24 PM UTC

Hi Steve, 

Thanks for the update. 

Query: could you tell me what exactly was the issue there? I have the `same problem and can't get it resolved. 
 
Based on your query we suspect that the reported script error may occurs when the culture/ locale values are not bound properly in the Grid component. So, for your convenience we have attached the documentation to apply the locale properly in the Grid component, please refer them for your reference. 


If you still face the issue then, please share the below details to find the root cause of the issue. 

  1. Share the Complete Grid code example.

  1. If possible, please try to share the issue reproducible sample..

  1. Please share the screenshot or video demonstration of your requirement.
 
  1. Please let us know have your used locale in your Grid application.
 
  1. Please share the Syncfusion package version.
 
Regards, 
Ajith G. 




JK Jayalatha Kathirvel June 10, 2021 11:13 AM UTC

Hi,

Am facing the same issue in my code after the package update for grid to 19.1.66. How to resolve this issue.

Regards,
Jayalatha Kathirvel


AG Ajith Govarthan Syncfusion Team June 11, 2021 01:39 PM UTC

Hi Jayalatha, 

Thanks for the update. 

Query: Am facing the same issue in my code after the package update for grid to 19.1.66. How to resolve this issue. 

Based on your query you are facing some issues after updating the Syncfusion Grid packages to 19.1.66. So, before we proceed to your query, please share the below details to find the root cause of the issue. 

  1. If possible, please try to share the issue reproducible sample.

  1. Share the complete Grid code example.
 
  1. Share the screenshot or video demonstration of the reported.
 
  1. Did you face any script error in the console?

Regards, 
Ajith G. 




EC Edel Custodio Frias February 16, 2023 01:26 PM UTC

Same issue for me as well



Grid version

20.3.56


JC Joseph Christ Nithin Issack Syncfusion Team February 20, 2023 05:56 PM UTC

Hi Edel,


  Greetings from Syncfusion support.


  Before we proceed to your query, please share the below details to find the root cause of the issue.


  • If possible, please try to share the issue reproducible sample.
  • Complete Grid code example.
  • Screenshot or video demonstration of the reported issue.


Regards,

Joseph I.





Loader.
Up arrow icon