We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ListView initialized with no data and virtualization enabled errors when dataSource is set later

Thread ID:

Created:

Updated:

Platform:

Replies:

143975 Apr 12,2019 05:25 AM UTC Apr 24,2019 09:41 AM UTC JavaScript - EJ 2 4
loading
Tags: ListView
Grant
Asked On April 12, 2019 05:25 AM UTC

Please see a repro in this CodeSandbox:  https://codesandbox.io/s/18yy171lyj 

Christopher Issac Sunder K [Syncfusion]
Replied On April 12, 2019 12:46 PM UTC

Hi Grant, 

Greetings from Syncfusion support!! 

We have analyzed your sample. If you want to initialize the list view with empty data, then you need to bind empty data source to list view. 

We have modified the sample for binding the empty data source when click the ‘Initialize with no data’ button. 

Please check the above the sample and let us know if we misunderstood your query. 

Thanks, 
Christo 


Grant
Replied On April 12, 2019 11:01 PM UTC

There's no fix for this issue in the updated code - you're just hiding the issue. I've reverted the sandbox code (https://codesandbox.io/s/wnm3yzj6m5). 

Below is a better description of how to see the issue:
  • Click the "Open in New Window" button for the running code

  • Display the console for the new window (F12)

  • Click the 'Initialize with data' button
    Note that 2 console logs are displayed ✔

  • Click the 'Initialize with no data' 
    Note that 1 console log is displayed, followed by a JS error (Uncaught TypeError: Cannot read property 'parentNode' of undefined)❌

  • Un-check the 'Virtualized' checkbox

  • Click the 'Initialize with no data' button
    Note that 2 console logs are displayed ✔


Christopher Issac Sunder K [Syncfusion]
Replied On April 15, 2019 12:49 PM UTC

Hi Grant,  
 
We regret for the inconvenience.  
 
We have analyzed your online sample and your given information. We have confirmed that this is a bug in ListView. We have logged a defect report for the same. The issue will be fixed and included in our upcoming patch release which is expected to be rolled in the next week. You can track the status of the feature through the below Feedback portal link, 
 
We appreciate your patience until then. 
 
Thanks, 
Christo 


Christopher Issac Sunder K [Syncfusion]
Replied On April 24, 2019 09:41 AM UTC

Hi Grant, 

Thanks for being patient. 

We have fixed the reported issue in enabling the virtualization with empty data source using onPropertyChange. The fix is included in the version v17.1.42 and you can now access it without getting any console error. We suggest you upgrade to the latest version to resolve the issue.    
  
  
Let us know if you need any further assistance on this.    

Thanks, 
Christo 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon