This is a migrated thread and some comments may be shown as answers.

Calling Picker.Focus() -> System.ObjectDisposedException

1 Answer 12 Views
Popup
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 20 Feb 2019, 02:36 PM

Hi,

I have a Picker inside a Popup. I want to open the picker from the code. Usually I would call ".Focus", but it gives an error:

 

System.ObjectDisposedException: Cannot access a disposed object.

Object name: 'Xamarin.Forms.Platform.Android.AppCompat.PickerRenderer'.

(The same happens if I try to set focus to an Entry.)

Please help!

 

Best regards,

Michael

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 21 Feb 2019, 11:30 AM
Hello Michael,

We have fixed a similar issue in one of our latest releases, so could you check what's the version of Telerik UI for Xamarin you're using?

I've additionally tested the case in a sample app with version 2019.1.220 of the assemblies, and it worked properly on my side.

Please give it a try and let me know how it goes.

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
Tags
Popup
Asked by
Michael
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or