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

SfSwitch inside of SFDataform causes null null reference exception when set

  • 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
  •    


1 Reply

KA Karthikraja Arumugam Syncfusion Team 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 17.4.0.39 and Xamarin.Forms version 4.4.0.991265
 
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, 
 
 
Regards,
Karthik Raja A 


Loader.
Live Chat Icon For mobile
Up arrow icon