Searching by multiple DataTextField variables

2 posts, 0 answers
  1. Richard
    Richard avatar
    1 posts
    Member since:
    Nov 2012

    Posted 04 Mar 2013 Link to this post

    When using .DataTextField() you are only able to search by one variable. Is there a way to search by multiple?

    For instance, using .DataTextField("CorpName") returns a list of items that start with the Corp name and .DataTextField("AccountNumber") returns a list of items that start with Account Number... I would like to return the search by both CorpName and AccountNumber.

    I am able to achieve this with autoComplete because each time it does a search, it is querying the database through a webservice and is therefore searching by both fields... but since this is a combobox, it only queries the database once and therefore I need to use .DataTextField() to search the returned list.
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 05 Mar 2013 Link to this post

    Hello Richard,

     
    The ComboBox does not support filtering by multiple fields. Nevertheless, you can enable filtering and use your "autocomplete" approach.

    Greetings,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top