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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Checkbox inside template

Thread ID:

Created:

Updated:

Platform:

Replies:

130028 Apr 17,2017 02:38 AM Apr 18,2017 02:49 AM ASP.NET Core 1
loading
Tags: ListBox
Dieter De Preester
Asked On April 17, 2017 02:38 AM

Hello               

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

thx
Dieter

Selvamani Sankarappan [Syncfusion]
Replied On April 18, 2017 02:49 AM

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: 
 
[cshtml] 
<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. 
 
Regards, 
 
Selvamani S. 


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.

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

;