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

Select All Option for Listbox

Thread ID:





144350 May 2,2019 08:22 AM UTC May 13,2019 07:23 AM UTC ASP.NET MVC - EJ 2 3
Tags: ListBox
Peter Rosenstein
Asked On May 2, 2019 08:22 AM UTC

i am looking for a select all and deselct option in the new Listbox.
How can i use the sam as in the multiselect dropdown list ?

with best regards

Vinoth Kumar Sundara Moorthy [Syncfusion]
Replied On May 3, 2019 11:55 AM UTC

Hi Peter, 
Thank you for contacting Syncfusion support. 
#1: i am looking for a select all and deselct option in the new Listbox. 
We have checked your requirement “Select all and deselect all option in ListBox” and it can be achieved using ‘ShowSelectAll’ property in ListBox. Please check the below code example, 
@Html.EJS().ListBox("multi-select-listbox").SelectionSettings(new Syncfusion.EJ2.DropDowns.ListBoxSelectionSettings { ShowCheckbox = true, ShowSelectAll = true }).DataSource((IEnumerable<object>)ViewBag.data).Render() 
For your convenience, we have prepared the sample and same can be downloaded from below link, 
#2 How can i use the same as in the multiselect dropdown list? 
You can achieve the same by enabling ShowSelectAll property in MultiSelect. Please check the below demo sample, 
Could you please check the above samples and get back to us, if you need any further assistance on this? 
Vinoth Kumar S 

Peter Rosenstein
Replied On May 11, 2019 08:13 PM UTC

Thanks for the answer, it works fine
Best Regards

Christopher Issac Sunder K [Syncfusion]
Replied On May 13, 2019 07:23 AM UTC

Hi Peter, 

We are glad to hear that the issue has been fixed. Please let us know if you require any further assistance. 



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon