How to use ListView with Templates and showCheckBox enabled

Hi, I have a ListViewComponent that looks like this 



However, upon loading the page I'm getting Uncaught TypeError: Cannot read property 'classList' of null at ListViewComponent.ListView.renderCheckbox. 

3 Replies

SP Sowmiya Padmanaban Syncfusion Team March 24, 2020 06:16 AM UTC

Hi Kenneth,  
 
Greetings from Syncfusion support. 
 
We have checked your problem. But, we are unable to reproduce it. Since, ListView template is working properly. We suspect that your requirement is  to enable the ListView template with checkbox property. 
 
For your reference, we have prepared a sample. 
 
Refer the below links for template sample in ListView. 
 
 
 
 
Please let us know, if you have any concerns. 
 
Regards,  
Sowmiya.P 



UG ugunay replied to Sowmiya Padmanaban September 13, 2021 07:51 PM UTC

Hi,


I have the same issue with Syncfusion version 19.2.60


To reproduce the error:

https://ej2.syncfusion.com/react/demos/#/material/listview/template ----> Edit in StackBlitz ---> Enable checkbox by

showCheckBox property.


If I both use showCheckBox and template, I get the error: Cannot read properties of null (reading 'classList').


If I use showCheckBox without template or template without showCheckBox, I have no error.



SM Shalini Maragathavel Syncfusion Team September 14, 2021 12:32 PM UTC

Hi Ugunay, 
 
Sorry for the inconvenience.  
 
We have validated your reported issue with ListView component and considered the reported scenario “ListView is not rendered while using both checkbox and template” as a bug from our end. The fix for this issue will be included in our last patch release by the end of September, 2021.    

You can track the status of your reported problem through the below portal link. 
  

Until then, we appreciate your patience. 

Regards,
Shalini M. 


Loader.
Up arrow icon