We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfSwitch inside of SFDataform causes null null reference exception when set

Thread ID:





150113 Dec 20,2019 03:08 PM UTC Dec 23,2019 09:15 AM UTC Xamarin.Forms 1
Tags: SfDataForm
Asked On December 20, 2019 03:15 PM UTC

  • DataFormSwitchEditor.OnCheckedChanged (System.Object sender, System.EventArgs e)
  • CompoundButton+IOnCheckedChangeListenerImplementor.OnCheckedChanged (Android.Widget.CompoundButton buttonView, System.Boolean isChecked)
  • CompoundButton+IOnCheckedChangeListenerInvoker.n_OnCheckedChanged_Landroid_widget_CompoundButton_Z (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_buttonView, System.Boolean isChecked)
  • (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.148(intptr,intptr,intptr,bool)

  • this happen on android only. works on ios

Karthikraja Arumugam [Syncfusion]
Replied On December 23, 2019 09:15 AM UTC

Hi Bob Blonchek, 
Thank you for contacting Syncfusion support. 
Based on the provided information, we have checked the mentioned issue “DataForm throws null exception while using Switch editor in DataForm” Xamarin.Forms (Android) and we unable to replicate the issue from our end. We have tested switch editor inside DataForm, custom switch editor with SfSwitch and custom DataFormItems. We have prepared sample for the same, 
Sample link: DataFormSwitch 
We have tested with Syncfusion update version and Xamarin.Forms version
Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with more details. It will be helpful for us to check on it and provide you the solution at the earliest. 
Note: DataForm doesn’t support DataFormSwitchEditor inside FloatingLabel layout. If you are using FloatingLabel layout kindly refer our UG documentation to know about supported and unsupported editors, 
Karthik Raja A 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon