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

How to raise dataform editor Touch event in Xamarin.Forms SfDataForm?

Platform: Xamarin.Forms |
Control: SfDataForm

You can raise the dataform editor touch event by adding custom editor when dataform has read/write access.


This article explains to raise the touch event of dataform custom editor and showing a pop up on touch recognized when dataform is read only.


Here, the ContactNumber data field is used as custom editor.



By passing custom view in DataFormEditor class, you can add custom editor in dataform. Refer to this DataForm user guide documentation for creating a new custom editor.


Here, the View is loaded for custom entry editor.



Refer to the following code example for binding the DataObject, setting dataform as read only and adding custom editor as Entry editor using the RegisterEditor method in dataform.



This article explains custom renderer in DataForm for Xamarin.Forms.Android and Xamarin.Forms.iOS platform alone.


In Android Renderer:


Here LinearLayout is loaded as native control in which EditText and SfPopupLayout is added to render the custom editor in dataform.


And touch gesture for custom dataform editor is recognized by raising the Touch event of the EditText.



In iOS Renderer:


Here UIView is loaded as native control  in which UIButton and SfPopupLayout  is added as sub views to render the custom editor.


 And touch gesture for custom dataform editor is recognized by raising the TouchDown event of the UIButton.



Sample Demo: EditorTouchEvent


2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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