You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to programmatically set focus to editor in Xamarin.Forms DataForm (SfDataForm)
1
+
# How to programmatically set focus to editor in Xamarin.Forms DataForm (SfDataForm)
2
+
3
+
You can set the focus programmatically to the editor in Xamarin.Forms [SfDataForm](https://help.syncfusion.com/xamarin/dataform/getting-started?) by customizing the existing editor.
4
+
5
+
Refer to the [online user guide documentation](https://help.syncfusion.com/xamarin/sfdataform/editors?) for creating new custom editor in DataForm.
Set focus to view on loading in OnInitializeView method using [Focus](https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.visualelement.focus?view=xamarin-forms) method.
Set focus to the view automatically at run time by getting the particular editor using [EditorView](https://help.syncfusion.com/cr/xamarin/Syncfusion.SfDataForm.XForms~Syncfusion.XForms.DataForm.DataFormItem~EditorView.html?).
0 commit comments