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

AutoComplete in iOS

1 Answer 68 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Francisco Gabriel
Top achievements
Rank 1
Francisco Gabriel asked on 05 May 2017, 08:38 AM

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;
 
 
            }
        }

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 09 May 2017, 02:35 PM
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
Tags
DataForm
Asked by
Francisco Gabriel
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or