RadDomainDataSource and RadAutoCompleteBox

2 posts, 0 answers
  1. Masoud
    Masoud avatar
    61 posts
    Member since:
    Aug 2011

    Posted 18 Jun 2013 Link to this post


    do you have any examples of using the RadDomainDataSource to supply the RadAutocompkleteBox with Data?
    Also, is it possible to have the RadAutocomplteBox use a collection of objects where one member is displayed and another is used as value member?

    Best regards!

  2. Vladi
    Vladi avatar
    743 posts

    Posted 21 Jun 2013 Link to this post


    Unfortunately we do not have an example that demonstrates how to use the RadAutoCompleteBox with RadDomainDataSource that we can share with you.

    In order to set one property of an object to be use for the searching feature of the control and another to be displayed in the control all you need to do is set the DisplayMemberPath and TextSearchPath properties of the control. The next code snippet shows how to set those properties:

    public class Country
        public string Name { get; set; }
        public string Capital { get; set; }

    and in the xaml:
    <telerik:RadAutoCompleteBox ItemsSource="{Binding Countries}"
                        WatermarkContent="Enter Country Name"

    Hope this is helpful.


    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top