multiple telerik:TextSearch.TextPath, is it possible?

4 posts, 1 answers
  1. Tai
    Tai avatar
    73 posts
    Member since:
    Jun 2010

    Posted 13 Sep 2010 Link to this post

    Hi

    is it possible to do this with radcombobox?
    (assuming that i have a radcombobox bound to a collection of Accounts which have fields (ID, Number, Description)
     The reason why i am asking this because i want to have an autocomplete radcombobox with the Itemtemplate (for drop down list) as a combination of two fields ( such as Number + Description) and i want to be able to search for two fields (Number + Description)  with SearchMode="contains" but the display of selection item input only show one field which is Number. And the Selected Value is another field which is ID

    Note: I can do that if i set the IsEditableEnabled = false. However, I want the user to be able to type a text for searching so i MUST set IsEditableEnabled = true. Then it won't work anymore because the Display of selection item will be the field which has been set for the telerik:TextSearch.TextPath. 


    thank you
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Sep 2010 Link to this post

    Hello Tai,

    For scenarios where you want to search by multiple fields we recommend adding a new property to the data item that combines the values of all properties that have to be searched. Setting telerik:TextSearch.TextPath="the_combined_values_property" will do the trick. However, when an item is selected, this will also display the value of the combined property in the TextBox inside RadComboBox.

    All the best,
    Valeri Hristov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Tai
    Tai avatar
    73 posts
    Member since:
    Jun 2010

    Posted 15 Sep 2010 Link to this post

    Hi Valeri,

    so is it  not possible for the Radcombobox to display one thing(number), search mode for another  thing(description), and the selected value is also another thing (id) in EDIT mode?

    thank you
  5. Answer
    Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 16 Sep 2010 Link to this post

    The property that is used for searching is always displayed in the TextBox. The items can display other property, but if you select an item, the search property will be displayed in the TextBox. The SelectedValue is separate and can be any property.

    Best wishes,
    Valeri Hristov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top