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

customize suggestion cells & result in textfield

7 Answers 44 Views
AutoCompleteTextView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fabien
Top achievements
Rank 1
Fabien asked on 20 Sep 2016, 04:03 PM

Hi,

  1/ I need to customize rendering of suggestion cells, something similar i use to do by using following methods for TKListViewDataSource

 

        public override TKListViewCell CellForItem(TKListView listView, NSIndexPath indexPath)

 

  Is this possible ?

 

  2/ I also need to customize the rendering of textfield result (after item selection).

  Is this possible ?

 

  Thanks for your help,

  Best regards,

Fabien.

7 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 21 Sep 2016, 02:10 PM
Hi Fabien,

Thanks for writing and for your questions.

You can refer to this SDK example for customization options of AutoCompleteTextView:

https://github.com/telerik/ios-sdk/blob/master/TelerikUIExamples/TelerikUIExamples/AutoCompleteCustomization.m

I hope this is helpful.

Regards,
Deyan
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
0
Fabien
Top achievements
Rank 1
answered on 21 Sep 2016, 02:16 PM

Hi Deyan,

  I need to do it for TKAutoCompleteDisplayMode.Plain mode and not for tokens.

  How to customize both list view cells and rendering of result view ?

  Thanks for your help,
  Best regards,
Fabien.

0
Deyan
Telerik team
answered on 21 Sep 2016, 03:01 PM
Hi Fabien,

Thanks for writing back.

TKAutoCompleteTextView exposes the suggestionView property which returns an instance of the TKSuggestionListView class used to display the suggestions. By default, TKSuggestionListView uses instance of the TKAutoCompleteSuggestionCell. You could inherit from this cell and create, let's say TKAutoCompleteCustomSuggestionCell, customize it and use the following approach to set it as a default instance for TKSuggestionListView:

[self registerClass:[TKAutoCompleteCustomSuggestionCell class] forCellWithReuseIdentifier:@"cell"];


I hope this is helpful.

Regards,
Deyan
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
0
Fabien
Top achievements
Rank 1
answered on 21 Sep 2016, 07:29 PM

I can only set image and text ... but I have no access to a detailText propêrty that I would need !

0
Fabien
Top achievements
Rank 1
answered on 21 Sep 2016, 07:30 PM

It is sad that I could not use DetailTextLabel from TKAutoCompleteSuggestionCell base class.

Is there any reason why ?

0
Fabien
Top achievements
Rank 1
answered on 21 Sep 2016, 07:48 PM

I just opened a support ticket on this issue for better tracking.

Thanks Deyan

0
Fabien
Top achievements
Rank 1
answered on 21 Sep 2016, 07:48 PM

Just opened relating support ticket.

Thanks Deyan.

Tags
AutoCompleteTextView
Asked by
Fabien
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Fabien
Top achievements
Rank 1
Share this question
or