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,
[Index.cshtml]
@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?
Regards,
Vinoth Kumar S