dataForm:SfDataForm x:Name="dataForm"
DataObject="{Binding CustomerEntity}"
AutoGenerateItems="False"
LayoutType="TextInputLayout">
<dataForm:SfDataForm.TextInputLayoutSettings>
<dataForm:TextInputLayoutSettings ShowHelperText="True"/>
</dataForm:SfDataForm.TextInputLayoutSettings>
<dataForm:SfDataForm.Items>
<dataForm:DataFormTextItem FieldName="CustomerName”/>
</dataForm:SfDataForm.Items>
</dataForm:SfDataForm>
If LayoutType = "Default" can work,but if I add LayoutType="TextInputLayout" ,the flowing is the error infomation:
System.InvalidOperationException: Event registration is overwriting existing delegate. Either just use events or your own delegate: Syncfusion.Maui.DataForm.UITextFieldDelegateExtended UIKit.UITextField+_UITextFieldDelegate
at UIKit.UIApplication.EnsureEventAndDelegateAreNotMismatched(Object del, Type expectedType) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 117
How to resolve this problem?
Thanks.
Hi, i am having the same issue, i am using MAUI Syncfusion Dataform library component and when i attempt to run the project to an iOS Simulator (tried iOS 17.4 and 18.1) i get the following error exception:
System.InvalidOperationException: 'Event registration is overwriting existing delegate. Either just use events or your own delegate: Syncfusion.Maui.DataForm.UITextFieldDelegateExtended UIKit.UITextField+_UITextFieldDelegate'
it works fine on an Android simulator but not iOS, i suspect this wont deploy to a iOS either (ipa or physical device).
I need the LayoutType as "TextInputLayout"
any help/workaround would be appreciated please.
thanks
Hi - we are also experiencing this issue, as described above in the two posts. This is causing us significant problems in building an iOS app due for rollout to our client on Wednesday 6th Nov.
Please respond urgently on this.
Hi David,
We have fixed the reported issue from our end. As of now, we have prepared a custom patch (NuGet) including the issue fix and shared it below for your reference. Please check with our patch and let us know whether your issue is resolved.
Before installing the patch, kindly remove bin and obj folders from all the projects of solution and clear NuGet cache: How-to-clear-nuget-cache
Please follow the below steps to remove the old cache NuGet and check your application with the custom NuGet:
Uninstall the Syncfusion NuGet installed in your application.
Clear your application NuGet cache referring the KB: https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache.
Clean your application.
Install the required Syncfusion NuGet (custom NuGet) to your application referring the KB: https://support.syncfusion.com/kb/article/9296/how-to-install-the-customer-patch-nuget-in-macos-machine.
Check the reported problem.
Note: When installing custom NuGet, install the “Syncfusion.MAUI.Core” custom NuGet first, then install the “Syncfusion.MAUI.DataForm” custom NuGet.
Disclaimer:
Please note that the custom patch was created for version 27.1.58 specifically to address this issue. We will include the issue fix in our upcoming weekly NuGet release scheduled for November 12, 2024. We will notify you once the release is rolled out. We appreciate your patience until then.
Regards,
Vidyalakshmi M.
Hi David,
Regarding issue” System.InvalidOperationException: 'Event registration is overwriting existing delegate error”
We are glad to announce that our Essential Studio® 2024 Volume 3 Service Pack Release V27.2.2 has been rolled out with the fix for the issue. It is now available for download at the following link: https://www.syncfusion.com/forums/195187/essential-studio-2024-volume-3-service-pack-release-v27-2-2-is-available-for-download
Root cause: Setting the Layout Type as TextInputLayout caused `System.InvalidOperationException` crash on `iOS`. We have now fixed this issue.
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you require any further assistance.
Regards,
Vidyalakshmi M.