DataSource, ItemsSource, AutoCompleteSource, FilteredItems - what is the difference?

Hi,

Having hard time understanding how SfAutoComplete works, documentation and API is not helping either (API has zero information about each property).
Can someone please explain the difference and purpose of the following:

- DataSource
- ItemsSource
- AutoCompleteSource
- FilteredItems 

I'm trying to make email address selector with tokens (similar to Gmail/Outlook apps). So by default I've no items to select from and when user types 2 characters I call our server to retrieve matching emails and assign to DataSource. Then user can type something else, I need to retrieve different emails and display in drop down. How can I achieve this?

1 Reply 1 reply marked as answer

SS Suganya Sethuraman Syncfusion Team May 27, 2021 08:34 AM UTC

Hi Ernest,

Greetings from Syncfusion.

We have analyzed the reported queries. The APIs mentioned below have been explained in detail.

DataSource

DataSource is IEnumerable DataTye. So, we can provide any type of data such as ObservableCollection<T>, ObservableCollection<Model class>, and <ListT> have been added to DataSource.

ItemsSource

In SfAutoComplete, we have set ListSfAutoCompleteItem> using ItemsSource. It is used to filter both images with text in the SfAutoComplete dropdown.

AutoCompleteSource

Using AutoCompleteSource, we have set ListString> to SfAutoComplete in Xaml.

FilteredItems

We obtained the filtered items when searching the autocomplete using the FilteredItems API.

We have prepared a sample based on your requirement. Please have a sample from below link,

Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/AutoCompleteOutLook537342593

Please check if the sample satisfies your requirement and let us know if you have any concerns.

Regards,
Suganya Sethuraman.
 


Marked as answer
Loader.
Up arrow icon