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

Combo box not updating value

When using the combo box componet I am binding a value that is not being updated when typing in the field. The code is:
  <EjsComboBox AllowCustom=@true
                                     Placeholder="Select an user">
                            <ComboBoxFieldSettings Text="Text" Value="Text" />

The ReporterName property is not being updated                    

4 Replies

SP Sureshkumar P Syncfusion Team February 3, 2020 10:40 AM UTC

Hi Krasimir, 
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.   
Sureshkumar P 

MA Matthew February 3, 2020 06:44 PM UTC

Hi Sureshkumar,

It seems this issue is also affecting other controls which implement the ValueChanged event. I have had the same issue with DropDownLists, NumericTextBox and a few other controls too. It also seems that calling StateHasChanged() seems to disable all further change events on a particular control. @bind-Value works first time only and only updates the underlying variable once. ValueChanged also has the same issue, so for my NumbericTextBox I tried ValueChange - see below. If you put a breakpoint on the "AssignmentID=...." line it will break every time. If you uncomment the StateHasChanged(); line, it will break the first time you change the value, but never again after that. As I stated earlier, this affects DropDownList and other controls as well.

<EjsNumericTextBox TValue="int?" Format="#" ShowSpinButton="false" Placeholder="Assignment ID" FloatLabelType="FloatLabelType.Always" Value="@AssignmentID">
    <NumericTextBoxEvents TValue="int?" ValueChange="AssignmentIDChanged" />

    public int? AssignmentID;

    protected void AssignmentIDChanged(Syncfusion.EJ2.Blazor.Inputs.ChangeEventArgs args)
        AssignmentID = (int?)(args.Value == 0 ? (double?)null : args.Value);

SP Sureshkumar P Syncfusion Team February 4, 2020 06:02 AM UTC

Hi Matthew, 
Thanks for your update. We are facing all the component in this issue. We are given high priority to fix this issue. As we said earlier, we will include this fix in our February 5th patch release. We appreciate your patience until then. 
Sureshkumar P 

SP Sureshkumar P Syncfusion Team February 6, 2020 09:43 AM UTC

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. 
Please find the release notes details from the below link. 
Sureshkumar P

Live Chat Icon For mobile
Up arrow icon