Hi, good day everyone.
I'm trying to create an app using MAUI, but every time I attempt to include the "Compare" validation on my model, using System.ComponentModel.DataAnnotations, it results in an exception being thrown at the DataForm, whenever I navigate to the field that has the compare validation and try to type anything on the field.
This exception is unhandled, thus it ends up sending me to App.g.i.cs, without fail.
If I remove the "Compare" attribute, no exception is thrown and the field in question, that would use this compare, doesn't throw any exceptions.
I wanted to know if the CompareAttribute is currently not available for Syncfusion on MAUI. I looked up in the documentation (https://help.syncfusion.com/maui/dataform/data-annotations) and couldn't find it there, so I thought that maybe it could still not be supported for MAUI. But then I realized that RegularExpression and EmailAddress annotations are also not in the docs, but are working fine on my project. So now I'm confused on whether or not it's actually supported. Does anyone know?
Hi Mateus,
#Regarding CompareAttribute thrown an exception
We have found and fixed the reported scenario from our end. We will include the issue fix in our weekly nuget release which is expected to roll out on July 4, 2023. We appreciate the patience until then.
Regards,
SaiGanesh Sakthivel
I see! Thank you for the swift response, I will wait for the update before using the CompareAttribute again.
Hi Mateus,
#Regarding CompareAttribute thrown an exception
We have fixed the issue from our end. Due to the testing phase, we have prepared patch including the fix. Before installing the patch, kindly remove bin and obj folders from all the projects of solution and clear NuGet cache.
Please refer our following KB document to clear nuget cache.
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
Disclaimer:
Please note that we have created this patch for version 22.1.34 specifically to include the issue.
We will include the issue fix in our weekly nuget release which is expected to roll out on July 11, 2023. We appreciate your patience until then.
Regards,
SaiGanesh Sakthivel
Hi Mateus,
We have fixed the reported issue "CompareAttribute thrown an exception" and included the issue fix in our latest Weekly NuGet release update version 22.1.38, which is available for download at nuget.org.
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.