AutoComplete in iOS

2 posts, 0 answers
  1. Francisco Gabriel
    Francisco Gabriel avatar
    6 posts
    Member since:
    May 2017

    Posted 05 May Link to this post

    I have this custom render. I want to define the source elements of the AutoComplete but i can't see any info in the documentation for iOS.

     

    Regards.

     

    protected override Type GetCustomEditorType(string propertyName, Type propertyType)
            {
                switch (propertyName)
                {
     
                    case nameof(AsuntosDataFormModel.tipo):
                        return typeof(TKDataFormAutoCompleteInlineEditor);
     
                    default:
                        return base.GetCustomEditorType(propertyName, propertyType);
                }
            }
     
    protected override void InitEditor(TKDataFormEditor editor, IEntityProperty property)
            {
                base.InitEditor(editor, property);
     
                var name = property.PropertyName;
     
                switch (name)
                {
     
                    case nameof(AsuntosDataFormModel.tipo):
                        editor.Property.Image = new UIImage("ic_data_tipo.png");
                        break;
     
     
                }
            }
  2. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    691 posts

    Posted 09 May Link to this post

    Hi,

    You can use the DataSourceKey attribute to define your source. Another way is to create custom DataFormDelegate and provide the value options to the TKEntityProperty.ValuesProvider. 

    I hope this helps.

    Regards,
    Ivaylo Gergov
    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
Back to Top