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

Examples on how to implement TKDataFormAutocompleteEditor?

1 Answer 82 Views
DataForm - Xamarin.iOS
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 16 Aug 2016, 09:47 AM

I have noticed in the docs there is a guide on how to implement an autocomplete editor in android:

http://docs.telerik.com/devtools/xamarin/controls/dataform/howto/dataform-howto-use-native-editors-android#autocomplete-editor-in-android

Is there an equivalent example on how to do this in iOS as I am struggling to get it working?

Thanks, James.

1 Answer, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 19 Aug 2016, 11:37 AM
Hi, James,

Thank you for writing.
To use the autocomplete editor in TKDataForm you should use TKDataFormAutocompleteEditor as EditorClass of your TKEntityProperty and the set a corresponding ValuesProvider. Please consider the code snippet below:
this.dataSource ["AutoComplete"].EditorClass = new Class (typeof(TKDataFormAutocompleteEditor));
this.dataSource["AutoComplete"].ValuesProvider = NSArray.FromStrings(new string[] { "FIPS Compliant", "High", "Client Compatible", "Low" });
I hope this helps.

Regards,
Adrian
Telerik by Progress
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
DataForm - Xamarin.iOS
Asked by
James
Top achievements
Rank 1
Answers by
Adrian
Telerik team
Share this question
or