RadAutoCompleteBox not displaying property

6 posts, 0 answers
  1. Nadeem
    Nadeem avatar
    2 posts
    Member since:
    Oct 2013

    Posted 03 Oct 2013 Link to this post

    Hi,

    I am actually using a RadAutoCompleteBox, which is linked to an ObservableCollection of contacts (from entity).
    But on run, when a contact  is selected, the property (DisplayMemberPath) does not display.

    Here's my xaml code;

    <telerik:RadAutoCompleteBox x:Name="lstReceiver"  <br> 
                               Margin="0" Grid.Column="1"  Height="25"<
    br
                               ItemsSource="{Binding RecipientList, Mode=TwoWay}"<
    br>
                               DisplayMemberPath="EmailAddress" SelectionMode="Multiple"<
    br
                               SelectedItem="{Binding SelectedRecipient, Mode=TwoWay}"<
    br>
                               TextSearchMode="StartsWith"<
    br
                               SearchText="{Binding ContactSearchKeyWords, Mode=TwoWay, BindsDirectlyToSource=True}"<
    br
                               TextSearchPath="EmailAddress">

    And here's what is being displayed in Run Mode (View attached image).
    Am I missing something here?

  2. Vladi
    Admin
    Vladi avatar
    749 posts

    Posted 04 Oct 2013 Link to this post

    Hello,

    We are not aware of such issues in the latest version of RadAutoCompleteBox control.

    I created and attached a sample project for you which shows that no unexpected behavior is observed in the described scenario. You should note that when using the control in Multiple SelectionMode, binding the SelectedItem property leads to only the first selected item to be set to the bound field. Please take a look at the attached sample project and let me know if I have missed something.

    Regards,
    Vladi
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. Nadeem
    Nadeem avatar
    2 posts
    Member since:
    Oct 2013

    Posted 07 Oct 2013 Link to this post

    Hi,

    Thanks for your reply.
    With the same solution you sent, just put them all in a RadTabItem, and you'll see the visual effect.

    Regards,
    Nadeem
  4. Vladi
    Admin
    Vladi avatar
    749 posts

    Posted 08 Oct 2013 Link to this post

    Hi,

    Thank you for pointing this out.

    We managed to observe the issue and indeed when the RadAutoCompleteBox control is placed inside a RadTabItem the text inside the BoxItem is not visible. We also noticed that this issue is only present when setting the theme to Windows8Theme. Setting the StyleManager.ApplicationTheme to any other theme works as expected.

    This is a known issue with the Foreground of the RadTabControl in the Windows8Theme and we hope to have it fixed as soon as possible. We apologize for any inconvenience that this may be causing.

    Regards,
    Vladi
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  5. Sreelaskshmi
    Sreelaskshmi avatar
    6 posts
    Member since:
    Aug 2014

    Posted 01 Mar in reply to Vladi Link to this post

    Hi,

    I am using AutoCompleteBox for selected groups.

    There is chance of selecting many groups .Those should show as in attachment.

    I am able to do that(Not able to see group 3 and group 4 in attachment).But i want to scrollbar in control.So that user can scroll and see the selected groups.

    Please let me know ,is there any way to display all selected items to the user.

    Thanks

    Mohan G

  6. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    617 posts

    Posted 03 Mar Link to this post

    Hello Mohan,

    In order to achieve the desired result, you can set the ScrollViewer.VerticalScrollBarVisibility attached property of the RadAutoCompleteBox control to Auto.

    <telerik:RadAutoCompleteBox ScrollViewer.VerticalScrollBarVisibility="Auto" />

    Please let me know if this works for you.

    Regards,
    Dilyan Traykov
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top