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. Image for the cookie policy date

ListView / ListBox + item template


First question: can I use a template with a ListBox, or do I need to use a ListView to achieve that?  If I can, is there any benefit with one or the other?

Second question, please could you supply the "list-template.vue" file referenced in this demo?


import listtemplateVue from "./list-template.vue";

I'm really struggling to replicate what you have.

Thank you!

1 Reply

KR Keerthana Rajendran Syncfusion Team December 3, 2019 07:29 AM

Hi Miles, 
Good day to you, 
Query #1: can I use a template with a ListBox  
We would like to inform that you can use template property in Listbox and we have already documented your reported requirement. Please refer the below documentation link for achieving your requirement.  
Documentation Link:  
Query #2: Benefit of Listbox:   
The ListBox component is a form component which displays a list of items from which the user can select one or more items. The supported features are data binding, drag and drop, templating, grouping, sorting and filtering.  
Query #3- Listview template file. 
We have checked your reported query about listview.template file. You can refer the sample browser sample in below location (listview.template file) 
We will add this file in our online sample browser on upcoming Volume 4 Release. 
Please let us know, if you have any concerns 

Live Chat Icon For mobile
Up arrow icon