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

Checkbox inside template


Is there an example of a checkbox in a listbox template?
I need to create a checkbox list.


1 Reply

SS Selvamani Sankarappan Syncfusion Team April 18, 2017 06:49 AM UTC

Hi Dieter, 
Thanks for using Syncfusion products. 
Yes, you can use the check box in ListBox template using our existing property showCheckbox. Refer to the following code example: 
<ej-list-box id="selectExperts" datasource="ViewBag.datasource" height="200px" show-checkbox="true" template="<div id='template'><div class='ename'> ${text} </div><div class='desig'> ${desig} </div><div class='cont'> ${country} </div></div>"></ej-list-box> 
Refer to the following sample: 
Please let us know if you need any further assistance. 
Selvamani S. 

Live Chat Icon For mobile
Up arrow icon