Searching and Displaying an IsEditable combobox

2 posts, 0 answers
  1. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 08 May 2011 Link to this post

    I want to search one value of my item in my itemtemplate, but I display a different one when selected.  I'm not sure this is possible.

    It would be like the demo 'Using ItemTemplate in Editable ComboBox', but you could search phone or zip along with the Name.  Then when selected, only the name would show up in the combo box.

    The SelectedValuePath doesn't seem to work when I have the telerik:TextSearch.TextPath set.

    <telerik:RadComboBox   Name="rcbBillingTkpr" 
             IsReadOnly ="False"   TextSearchMode="Contains"
            telerik:TextSearch.TextPath="Name" SelectedValuePath="Tkpr"
            ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Clear"
            IsEditable="True" IsFilteringEnabled="True">
                <StackPanel Orientation="Horizontal">
                    <local:HighlightingTextBlock   Background="Beige" HighlightBrush="Blue" Margin="0 0 5 0"
        HighlightFontWeight="Bold" HighlightText="{Binding Text, ElementName=rcbBillingTkpr}" 
        Text="{Binding Name}"  />
                    <local:HighlightingTextBlock FontWeight="Bold" Background="Beige" HighlightBrush="Blue" 
        HighlightFontWeight="Bold"  HighlightText="{Binding Text, ElementName=rcbBillingTkpr}" 
        Text="{Binding Tkpr}"  />
  2. George
    George avatar
    1332 posts

    Posted 11 May 2011 Link to this post

    Hi Dan,

    I would suggest using custom ItemTemplate and the attached property TextSearch.TextPath that helps you to specify which value you want to use for AutoComplete and AutoSelect. Please, refer to our online documentation where you can find additional information about your scenario - &

    I hope this helps.

    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