I'm facing an issue with the Dropdownlist component after updating the Syncfusion package from version 22.1.39 to 24.1.44. The component, which is bound to a list of Guids, uses the 'Guid' property for setting the selected value. The previous setup worked, but after the update, it has stopped functioning. I've used 'Guid?' as a workaround, but I require a solution that supports a not-null Guid property.
I've attached a screenshot of the error for your reference.
Hi Jake,
Greetings from Syncfusion Support!
Thank you for reaching out to us regarding the issue you are facing with the Dropdownlist component after updating the Syncfusion package. We appreciate your efforts in providing the details, and we understand the importance of resolving this matter promptly.
After a thorough review of your description, we have created a sample based on the information provided, but we were unable to replicate the issue at our end. You can find the sample here: https://blazorplayground.syncfusion.com/LZLzXMiaAdpsqmHE
To assist you further, we kindly request additional details to better understand and address the issue:
By providing this information, you will help us investigate the issue more thoroughly and offer you a more accurate solution. We are committed to resolving this concern as quickly as possible.
Regards,
Kokila Poovendran.
It looks like it only happens when the initial value is not selected, and there is an item in the dropdown that has an empty Guid.
Here is a simple way that I reproduced the error:
*in this case the dropdown isn't rendered until after it has items*
Hi Jake,
Thank you for providing additional details regarding the issue you're encountering with the dropdown component. We appreciate your efforts in providing a clear explanation and screenshots for better understanding.
We have thoroughly reviewed your scenario and attempted to replicate the issue using the provided code snippet. However, we were unable to reproduce the error on our end. We have created a sample based on the code you shared from the screenshots, and the reported issue did not occur.
Sample: https://blazorplayground.syncfusion.com/rZLptrjuJCYAZJKp
In the sample, we have utilized the exact code snippet you provided, but the issue did not manifest. We tested the scenario with both the reported version 24.1.44 and our latest package, but the problem did not arise.
We kindly request you to take a moment to review the sample provided. If you continue to encounter issues, please modify the sample in a way that replicates your specific problem. Additionally, if feasible, we would appreciate it if you could provide a video illustration of the issue.
Thank you for your cooperation and patience. We remain committed to resolving this issue for you promptly.
I have recreated the issue, here is my sample code to recreate it.
Hi Jake,
We have considered the reported issue “The @bind-Value for Guid Datatype throws an exception" as a bug from our end and the fix for the issue will be included with our upcoming patch release ,which is expected to be rolled out at the end of February, 2024. Now you can track the status of the reported issue through the feedback below,
Feedback Link: https://www.syncfusion.com/feedback/50849/the-bind-value-for-guid-datatype-throws-an-exception
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
Hi Jake,
We have included the fix for the issue "The @bind-Value for Guid Datatype throws an exception" with our package version “24.2.6”. Therefore, we
recommend upgrading to our latest version to resolve the current issue.
Root cause
Due to an asynchronous delay while dynamically updating the DataSource andd using @bind-Value property, an exception occurs in the GetDataByValue method.
Release Notes:https://blazor.syncfusion.com/documentation/release-notes/24.2.6?type=all#bug-fixes-6
Sample: https://blazorplayground.syncfusion.com/VtBJjBZYosTflepk