RadAutoCompleteView Custom Templates
Overview
If the default templates of the control do not suit your needs, you can easily define a custom template. The available templates for customizing are:
- NoResults Template(DataTemplate): Defines the template visualised when there are no suggestions found.
- ShowMore Template(DataTemplate) for Tokens Support: Defines the template used to create show more view when DisplayMore="Tokens".
- Loading Template(DataTemplate) for Remote Search functionality: Defines the loading message in RemoteSearch state.
- Tokens Template(DataTemplate) for Tokens Support: Defines the template used to vizualize the tokens.
- SuggestionItem Template(DataTemplate): Defines the template that will be used to create each of the suggestions.
- SuggestionView Template(DataTemplate): Defines the template used to visualize the filtered items.
Example
NoResults Template
Here is an example how the NoResults Template could be defined:
ShowMore Template
XAML definition of ShoWMore Template:
A sample NoResult and ShowMore Template example can be found in the AutoCompleteView/Features/Tokens folder of the SDK Samples Browser application.
Loading Template
XAML definition of the Loading Template:
A sample Loading Template definition can be found in the AutoCompleteView/Features/RemoteSearch folder of the SDK Samples Browser application.