TextSearch.TextPath&DisplayMemberPath

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

    Posted 02 Sep 2010 Link to this post

    Hi,
    I've applied DisplayMemberPath ,SelectedValuePath,telerik:TextSearch.TextPath properties
    Combobox in XAML looks like
    <telerik:RadComboBox Margin="247,162,0,0" Name="radComboBoxDiagnosis"   
     EmptyText="Selected Items..." 
     DisplayMemberPath="Name"
     SelectedValuePath="Zddm"
     Style="{StaticResource RadComboBoxStyle}" telerik:TextSearch.TextPath="QueryName">
    </telerik:RadComboBox>
    Dropdown list is populated ok, but when I select an item in a dropdown and it closes my selected item looks like QueryName as you can see in an attached screenshots.

    Am I doing something wrong or is this another bug?
    Regards,
    Dean

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 03 Sep 2010 Link to this post

    Hi jingtian,

    telerik:TextSearch.TextPath specifies the name of the property which value will be displayed in the TextBox when IsEditable = true, that's why RadComboBox displays the value of QueryName in its TextBox. If the attached property is not set, the control will use DisplayMemberPath instead.

    Greetings,
    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
Back to Top