Examples on how to implement TKDataFormAutocompleteEditor?

2 posts, 0 answers
  1. James
    James avatar
    4 posts
    Member since:
    Jun 2016

    Posted 16 Aug Link to this post

    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.

  2. Adrian
    Admin
    Adrian avatar
    167 posts

    Posted 19 Aug Link to this post

    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
  3. DevCraft banner
Back to Top