I have an IgbCombo where the Data property is being set to list of objects. When a user selects something on the screen that underlying list gets filtered down. When this happens instead of the combo updating to have the filtered list of data it is throwing javascript errors like below:
<IgbCombo Data="@facilities" DisplayKey="@nameof(FacilityComboSelection.FacilityName)" @bind-Value="@selectedFac" Change="FacilityChange" />
<IgbButton @onclick="Click">Clickme</IgbButton>
@code { private IList<FacilityComboSelection> facilities;
protected override async Task OnInitializedAsync() { facilities = (await _userAccessService.GetFacilities()).ToList(); }
private void Click() { facilities = facilities.Take(2).ToList(); }
Hello Douglas,
I have been investigating into the behavior you are seeing, and I was able to reproduce an error by changing the data, but it is a different error and so I am curious if we are testing potentially in different environments. Would it be possible for you to please provide the following details about your environment?
1. Are you using Blazor Web Assembly (WASM) or Server?
2. What version of .NET are you targeting?
3. What version of Ignite UI for Blazor are you targeting? My tests were made against the latest version at the time of writing this - 23.2.120.
I am using:1. Blazor Web Assembly2. net6.03. 23.1.72 is the version of IgniteUI.Blazor.
Version 23.1.72 is about 6 versions behind latest at the time of writing this (the latest version is 23.2.120). Would it be possible for you to please upgrade your project to the latest version and see if you are still reproducing an error as our IgniteUI.Blazor product uses continuous delivery and so this would not be fixed in 23.1?
I updated the reference of IgniteUI.Blazor to version 23.2.12. I get generally the same error, but the line numbers in the stack trace are a little different:This error shows up right after the line of code where I'm updating the list that the combo Data property is bound to.
Thank you for your patience on this matter. I have reproduced the behavior by removing the SelectedValue initialization.
This behavior is unexpected, and as such, I have asked our engineering teams to examine the issue further. To ensure it receives attention, I have logged it in our internal tracking systems with a development ID of 29738. I will be linking this to a private support case that I have created for you. The private case has an ID of C-00235311 and you can access it after signing into your Infragistics account on the website, here: https://account.infragistics.com/support-cases. The next step will be for a developer to investigate further and offer a fix or other resolution, at which time I will notify you that this has happened through the support case.
Please let me know if you have any other questions or concerns on this matter.
I was able to get the project you attached to throw the same error I was getting. I just got rid of the line that sets "this.SelectedValue = new[] { "UK01" }; in OnInitialized.I also found that if I selected a value in the OnInitialized of my project I got a different error, which is more similar to what your project was throwing before I made changes. It looks like it is related to the value that is set as the DisplayKey on the combo:
I have been investigating this, but I don’t see the same error with the attached sample project. I am curious if you do? I am still seeing an error, but it seems to be related to the itemTemplate, which I intend to log. Attaching a screenshot of the error for reference.
This leads me to believe that there could potentially be multiple errors in this area in the underlying Web Component for the IgbCombo. If you could modify the sample I am attaching and send it back such that it reproduces the behavior, I will gladly take a look.
1526.overview.zip