AutoCompleteEditor & Custom class

2 posts, 0 answers
  1. Jernej
    Jernej avatar
    1 posts
    Member since:
    Dec 2017

    Posted 04 Dec 2017 Link to this post


    is any way, for DataForm and EditorType.AutoCompleteEditor, that AutoCompleteEditor has list of custom class and not list of string?


    I have classes for Book and Worker, I would like to use for author AutoComplete whick have list of WorkerRecord.

    public class BookRecord{

        string Name;

        WorkerRecord author;

    public class WorkerRecord{
        string Name;
        string Surname;


    this.dataForm.RegisterEditor("BookName", EditorType.TextEditor);
    this.dataForm.RegisterEditor("Author", EditorType.AutoCompleteEditor);


    Tnx for all information.




  2. Lance | Manager Technical Support
    Lance | Manager Technical Support avatar
    1195 posts

    Posted 04 Dec 2017 Link to this post

    Hi Jernej,

    You'll find two examples for such use cases on your PC, located where you installed UI for Xamarin. If you used the default installation location, you'll find the solution here:

    C:\Program Files (x86)\Progress\Telerik UI for Xamarin R3 2017\Examples\XamarinForms\SDKBrowser.sln

    Once you open the solution in Visual Studio, drill down to the Portable > Examples > DataForm > Editors folder and you'll find the examples. Here, you'll see how to use the PropertyDataSourceProvider and DataSourceKeyAttribute.

    Lance | Tech Support Engineer, Sr.
    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
Back to Top