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

Hi,

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?

https://ej2.syncfusion.com/vue/demos/#/material/listview/template.html

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

I'm really struggling to replicate what you have.

Thank you!
Miles


1 Reply

KR Keerthana Rajendran Syncfusion Team December 3, 2019 12:29 PM UTC

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 
 
Regards, 
Keerthana. 


Loader.
Up arrow icon