Changing columns dynamically throws exception "E.getProperties is not a function"

I am trying to update columns based on a button click. It throws error on "E.getProperties is not a function"
Here is the screenshot on the error.


Grid package version : 18.2.59

FYI, I found below thread but it did not help.
https://www.syncfusion.com/forums/158029/adding-column-dynamically-getting-error


Here is the stackbliz example with error:
https://stackblitz.com/edit/dynamic-column-addition?file=app.component.html

Please advise.
Thanks


3 Replies 1 reply marked as answer

VS Vignesh Sivagnanam Syncfusion Team October 29, 2020 01:56 PM UTC

Hi Visha 

Thanks for contacting Syncfusion support. 

We checked the attached sample and we can able to reproduce the mentioned issue at our sample. But when we check with the latest version but we did not face the issue at our end.   

So, please update the Syncfusion package to the latest version to avoid the issue.  
 
Please refer the below sample for your reference 
 
 
Please get back to us if you need further assistance  

Regards, 
Vignesh Sivagnanam 



VS Visha Shah October 29, 2020 08:43 PM UTC

Do I have to update all the Syncfusion packages? or just the ej2-angular-grids version?


VS Vignesh Sivagnanam Syncfusion Team October 30, 2020 11:18 AM UTC

Hi Visha, 

Thanks for the update 

Based on your query, we suggest you to upgrade all packages at your end. Please follow the below steps to update them to the latest version, 

1.            Delete package.lock.json file from your application.  
2.            Remove the @syncfusion  package folder from the node_modules.  
3.            Specify latest version or “*”(Installs the latest packages) for all Syncfusion components in package.json file.  
4.            Then install the new packages.  


Let us know if you have any concerns. 

Regards, 
Vignesh S 


Marked as answer
Loader.
Up arrow icon