Suggestion View Customization
AutoComplete provides the option to change the default template that visualize the filtered items and implement a custom template using SuggestionViewTemplate
property.
-
SuggestionViewTemplate
(DataTemplate
)—Defines the template used to visualize the filtered items
Example
Here is an example how to use the RadAutoComplete SuggestionViewTemplate
:
1. Create the needed business objects, for example type City with the following properties:
2. Create a ViewModel with a collection of City objects:
3. The following snippet shows the SuggestionViewTemplate
with RadDataGrid
inside it:
Here is the result:
For AutoComplete SuggestionView Template example refer to the SDKBrowser Demo application.