ejs-grid ERROR TypeError: Cannot read property 'matrix' of undefined

I have an Angular drilldown modal with  datagrid <ejs-grid #overviewgrid id="drilldown-grid" [dataSource]="drillDownData" [allowSorting]="true" gridLines="Horizontal" rowHeight="38" height="100%" width="100%">.
using to assign the values.
this.theService.getTheData({
      "AppUserID": 1
    }).subscribe((next) => {
           this.drillDownData = next.detailData;
})

but seems like when the data size over 400, it pop up 
ERROR TypeError: Cannot read property 'matrix' of undefined
    at FocusStrategy.../../node_modules/@syncfusion/ej2-grids/src/grid/services/focus-strategy.js.FocusStrategy.onFocus (focus-strategy.js:56)
    at ZoneDelegate.push.../../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)

or if the data size is around 50, initially there is no errors, but after I click the drilldown popup link 3 or 4 times, I see the same error as I mentioned above.

Is there a way to fix this error? Does it matter to the application? Please let me know. If you need more details, please let me know also.

Thanks
Don


3 Replies

AG Ajith Govarthan Syncfusion Team January 26, 2021 05:41 AM UTC

Hi Don, 
 
Thanks for contacting Syncfusion support. 
 
Query: but seems like when the data size over 400, it pop up ERROR TypeError: Cannot read property 'matrix' of undefined, 
 
We have checked your query and you are facing script error when you click drilldown popup link 3 or 4 times. Before we proceed to your query, we need to following details to find the root cause of the issue. 
 
  1. Share the complete grid code example.
 
  1. Share the screenshot or video demonstration of the issue.
 
  1. If possible please try to share the issue reproduced sample.
 
  1. Share the Syncfusion package version.
 
Regards, 
Ajith G. 



DL Don Liang January 26, 2021 03:52 PM UTC

Hi Ajith,

My syncfusion version is 18, angular version is 9.1.3.  It's really hard to share the complete code with you. I can share the HTML, the ts, mock data json file. and 3 screen shots  as attached. 

Thanks for your helps
Don

Attachment: PhysicianTrends_5365f0d1.zip


TS Thiyagu Subramani Syncfusion Team January 28, 2021 01:02 AM UTC

Hi Don, 

Thanks for your update and sorry for the inconvenienced. 

Based on your shared information we suspect that you have rendered our EJ2 Grid component inside the Dialog using content template and you reported issue in Grid’s focus strategy but based on this we unclear about your exact issue replication scenario because focus strategy issue related to component’s interaction.  So, Before proceeding this further, please share below details then only we provide the appropriate solution as soon as possible. 

  1. Share issue reproducing video demonstration
  2. Share package.json file

Please get back to us, if you need any further assistance. 

Regards, 
Thiyagu S 


Loader.
Up arrow icon