TextSearchPath - 2 Properties?

2 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 02 May 2013 Link to this post

    HI,

    i use your AutoCompleteBox from you wpf-example. It works fine. In your "Contatc.cs" are two properties, firstname and lastname.
    Your TextSearchParh in the xaml file ist "FirstName".

    Is it possible to you both properties "FirstName" and "lastName"??

    Thanks
    Best Regards
    Rene
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 07 May 2013 Link to this post

    Hi,

    By design the TextSearchPath property cannot be set to multiple objects in order to use two or more properties of the bound object when filtering the items in the AutoCompleteBox control.

    In order to achieve the desired behavior in the RadAutoCompleteBox control you will need to create a custom FilteringBehavior with the custom logic of the multiple properties filtering. You can check our online SDK example about TwoPropertiesFilteringBehavior that shows how to achieve the previously described approach.

    Hope this is helpful.

    All the best,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top