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

Two-way data binding for multiselect does not working anymore

Something happened in version 17.4.46,
Multiselect control does not binding two way value any more,
To me look like BUG here is sample copy / paste from documentation page.
https://ej2.syncfusion.com/blazor/documentation/multiselect/data-binding/?no-cache=1#two-way-data-binding

@page "/counter"
@using Syncfusion.EJ2.Blazor.DropDowns

@foreach (var SelectedValue in MultiVal)
{
   

MultiSelect value is:@SelectedValue

}

EjsMultiSelect Placeholder="e.g. Australia" @bind-Value="@MultiVal" DataSource="@Country"
    MultiSelectFieldSettings Value="Name" MultiSelectFieldSettings
EjsMultiSelect

@code {

    public string[] MultiVal { get; set; } = new string[] { };

    public class Countries
    {
        public string Name { get; set; }

        public string Code { get; set; }
    }

    List Country = new List
{
        new Countries() { Name = "Australia", Code = "AU" },
        new Countries() { Name = "Bermuda", Code = "BM" },
        new Countries() { Name = "Canada", Code = "CA" },
        new Countries() { Name = "Cameroon", Code = "CM" },
    };
}

2 Replies

SP Sureshkumar P Syncfusion Team February 3, 2020 10:06 PM

Hi Admir, 
 
We have validated your explained scenario. We confirmed this as a bug in our end. And the fix will be available this week patch release. Which is expected to be rolled out on February 5th, 2020. We appreciate your patience until then. 
 
You can track the status of the bug in the below feedback link from below.   
  
 
Regards, 
Sureshkumar P 



SP Sureshkumar P Syncfusion Team February 6, 2020 02:04 AM

 
Thanks for the patience. 
 
We are glad to announce that our latest release in the version 17.4.47 has been rolled out successfully and in that release, we have included the “Two Way Binding Is Not Updating After First Selection”.  So, we suggest you upgrade our Syncfusion packages to our latest version to resolve this issue in your end. 
     
Scripts:  
 
Themes:  
 
Please find the release notes details from the below link. 
 
Regards,
Sureshkumar P
 


Loader.
Live Chat Icon For mobile
Up arrow icon