Different DataTemplates for different types

2 posts, 1 answers
  1. Nathan
    Nathan avatar
    1 posts
    Member since:
    Jan 2011

    Posted 01 Jan 2017 Link to this post

    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!


    Customer ID is: WP480921

  2. Answer
    Ivan Ivanov
    Ivan Ivanov avatar
    1218 posts

    Posted 02 Jan 2017 Link to this post


    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. 

    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.
Back to Top