customize suggestion cells & result in textfield

8 posts, 0 answers
  1. Fabien Masson
    Fabien Masson avatar
    11 posts
    Member since:
    Jul 2009

    Posted 20 Sep Link to this post

    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.

  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 21 Sep Link to this post

    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
  3. DevCraft banner
  4. Fabien Masson
    Fabien Masson avatar
    11 posts
    Member since:
    Jul 2009

    Posted 21 Sep in reply to Deyan Link to this post

    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.

  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 21 Sep Link to this post

    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
  6. Fabien Masson
    Fabien Masson avatar
    11 posts
    Member since:
    Jul 2009

    Posted 21 Sep in reply to Deyan Link to this post

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

  7. Fabien Masson
    Fabien Masson avatar
    11 posts
    Member since:
    Jul 2009

    Posted 21 Sep in reply to Fabien Masson Link to this post

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

    Is there any reason why ?

  8. Fabien Masson
    Fabien Masson avatar
    11 posts
    Member since:
    Jul 2009

    Posted 21 Sep in reply to Fabien Masson Link to this post

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

    Thanks Deyan

  9. Fabien Masson
    Fabien Masson avatar
    11 posts
    Member since:
    Jul 2009

    Posted 21 Sep in reply to Fabien Masson Link to this post

    Just opened relating support ticket.

    Thanks Deyan.

Back to Top
DevCraft banner