Completed
Last Updated: 24 Oct 2019 11:28 by Sisi
Release R3 2019 SP
ADMIN
Sisi
Created on: 05 Nov 2018 15:20
Category: DataForm
Type: Bug Report
2
DataForm: [Android] Exception is thrown when pressing next button on the keyboard on XF 3.3.0

		
5 comments
Sisi
Posted on: 24 Oct 2019 11:28
We've resolved the exception on our side. Still, at this point, the functionality for focusing the next element does not work properly. This is caused by an issue on Xamarin.Forms side. You can directly track it on Github here https://github.com/xamarin/Xamarin.Forms/issues/7870.
ADMIN
Yana
Posted on: 11 Oct 2019 07:35

Hi Markus,

We're working on resolving the exception, most probably a fix will be available in some of the upcoming releases.

Regards,
Yana
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Markus
Posted on: 10 Oct 2019 07:23
Still same error on Xamarin Forms 4.2.0.848062
ADMIN
Yana
Posted on: 29 Jan 2019 14:09
As a temporary workaround, until Xamarin.Forms team resolves the issue at their side, you could replace the next button with "Done" button through a custom renderer on Android. You would need to access the inner EditText control and set its ImeOptions property.  Here is a quick example:

Copy Code
public class CustomDataFormRenderer : DataFormRenderer
{
    public CustomDataFormRenderer(Context context) : base(context)
    {
    }
 
    protected override void UpdateEditor(EntityPropertyEditor editor, Telerik.XamarinForms.Input.DataForm.IEntityProperty property)
    {
        base.UpdateEditor(editor, property);
 
        if (editor is DataFormTextEditor || editor is DataFormDecimalEditor || editor is DataFormIntegerEditor)
        {
            var editText = editor.EditorView.JavaCast<AppCompatEditText>();
            editText.ImeOptions = global::Android.Views.InputMethods.ImeAction.Done;
        }
    }
}

I applied the work-around for a few of the editors of the DataForm, you could add the other text editors you're using in your app.

Regards,
Yana
ADMIN
Nasko
Posted on: 28 Nov 2018 09:53
Our investigation showed that it is caused by the TabIndex feature of Xamarin Forms that has been introduced with version 3.3. We have logged an issue on Xamarin.Forms repo : https://github.com/xamarin/Xamarin.Forms/issues/4561