I am trying to add a RadAutocomplete in my app and can't populate the component; I followed the tuts but typing something in it lead always to "No results found".
I guess that somehow it is not initialized. My component code is lengthier but I made a shorter playground here, Nativescript playground.
Can anybody tell me what am I missing?
Your code had several issues in the initial version:
- SuggestionView
was outside RadAutoCompleteTextView
- searchItems are never initialised / getInitial() is never invoked from anywhere
- You were not using TokenModel
etc.,
Your updated version fixed most, but you were still having typos on variable name and missing TokenModel
implementation. I have updated it for you.