This is a migrated thread and some comments may be shown as answers.

Different DataTemplates for different types

1 Answer 44 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 01 Jan 2017, 02:59 PM

Hi All,

    In the drop down area of an RadAutoCompleteBox, how could different datatemplates be automatically selected based on the current bound type, like what can be done for ListView? Thanks!

Nathan

Customer ID is: WP480921

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Ivanov
Telerik team
answered on 02 Jan 2017, 03:25 PM
Hello,

Currently, RadAutoCompleteBox supports DataTemplate selection only for the boxes (not for the drop down items). However, this can be achieved relatively easily by using RadListBox's inherent DataTemplateSelector support. I prepared a sample project that demonstrates how to achieve this behavior. 

Regards,
Ivan Ivanov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
AutoCompleteBox
Asked by
Nathan
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or