Trouble with @bind-Value for Guid Datatype After Recent Update

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.

DropdownBug.PNG


6 Replies

KP Kokila Poovendran Syncfusion Team January 19, 2024 10:40 AM UTC

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:


  • Could you share the complete code snippet for the Dropdownlist component that is causing the problem?
  • If possible, modify the shared sample based on your specific scenario to replicate the issue.
  • Please provide a video illustration of the problem, if feasible.


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.



JA Jake February 7, 2024 03:50 PM UTC

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:

Image_6790_1707320887611

Image_4635_1707320838447

*in this case the dropdown isn't rendered until after it has items*



KP Kokila Poovendran Syncfusion Team February 9, 2024 11:45 AM UTC

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.


Samplehttps://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.






JA Jake February 9, 2024 02:21 PM UTC

I have recreated the issue, here is my sample code to recreate it.

https://blazorplayground.syncfusion.com/VtBJjBZYosTflepk



KP Kokila Poovendran Syncfusion Team February 14, 2024 05:03 AM UTC

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.



KP Kokila Poovendran Syncfusion Team March 6, 2024 07:16 AM UTC

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

S
amplehttps://blazorplayground.syncfusion.com/VtBJjBZYosTflepk


Loader.
Up arrow icon