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
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
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.
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:
I hope this is helpful.
Regards,
Deyan
Telerik by Progress
I can only set image and text ... but I have no access to a detailText propêrty that I would need !
It is sad that I could not use DetailTextLabel from TKAutoCompleteSuggestionCell base class.
Is there any reason why ?
I just opened a support ticket on this issue for better tracking.
Thanks Deyan
Just opened relating support ticket.
Thanks Deyan.