0
votes

I'm using RadAutoComplete in order to search in a list. for example, this is my list:

  • Rolex | Date Just | Man
  • Rolex | Yacht Master ||

If a user types Rolex the list will show correctly but he types Date, it won't show anything. I want if the user typed Date that is the middle word, the list would show.

I have read the document already but haven't found anything about that. please anyone can help me?

Update: This is the playground sample.

Thanks

1
Have you set completionMode to Contains, if it still fails please share Playground Sample where the issue can be reproduced. - Manoj
Can you share your piece of code? - Narendra
@Narendra here you are play.nativescript.org/… - Meysam Mahmoodi

1 Answers

1
votes

You have to set the completionMode to Contains if you like a full text search instead of start with.

<RadAutoCompleteTextView automationText="RadAutoCompleteTextView"
                    row="0" col="1" class="RadAutoCompleteTextView" hint="Search"
                    [items]="dataItems" suggestMode="SuggestAppend"
                    displayMode="Plain" showCloseButton="true" completionMode="Contains">

Updated Playground