Bug with MultiSelect

Hi,

I found a bug in MultiSelect Control.

If all items of the data source are selected, if I click on the input box, the list is empty but I can't unselect any item

Exemple : 

@Html.EJS().MultiSelect("SelectedRoles").Placeholder("Roles").DataSource((IEnumerable<object>)Model.RolesSelection).Fields(new MultiSelectFieldSettings { Text = "Name", Value = "Id" }).CssClass("form-control").Render()

4 Replies

IB Ilakkiya Baskar Syncfusion Team April 5, 2018 09:38 AM UTC

Hi Tommy,

Thank you for contacting Syncfusion Support.
  
  
We suggest you to use the HideSelectedItem property to show the items after selecting the data item which is in the source. It is a behavior that the popup items are not present when it is selected. Please refer to the code block below.    
@Html.EJS().MultiSelect("SelectedRoles").Placeholder("Roles").HideSelectedItem(false).DataSource((IEnumerable<object>)Model.RolesSelection).Fields(newMultiSelectFieldSettings { Text = "Name", Value = "Id" }).CssClass("form-control").Render()   
  
Let us know if there is any concern, we will be happy to assist you.   

Regards,
Ilakkiya Baskar 
  
 



TM Tommy Mailhot April 5, 2018 02:30 PM UTC

Hi, I try your solution but it's not working. If I don't select all item, everything work fine but if I select all and and save, after refresh, I can't unselect items...



KR Keerthana Rajendran Syncfusion Team April 9, 2018 12:39 PM UTC

Hi Tommy, 
 
Sorry for the inconvenience. 
 
We were able to reproduce the issue in our end and confirmed this as a defect. This fix will be included in our upcoming patch release on April 10, 2018. 
 
Regards, 
Keerthana. 



IB Ilakkiya Baskar Syncfusion Team April 11, 2018 09:53 AM UTC

Hi John,   
  
Thanks for your patience.   
  
We have fixed the reported issue (HideSelectedItem) and rolled out in v16.1.0.34 release. Now, you can upgrade the Syncfusion.EJ2 and Syncfusion.EJ2.MVC package using Nuget package manager.      
We are working on the reported issue (“when selecting all the items, the deselect option is not properly working”).  The fix for this issue will be included in our upcoming patch release.    
Please let us know, if you have any other concern, we will happy to assist you.       
   
Regards,      
Ilakkiya B   
 


Loader.
Up arrow icon