This is a migrated thread and some comments may be shown as answers.

RadAutoCompleteBox not displaying property

5 Answers 382 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Nadeem
Top achievements
Rank 1
Nadeem asked on 03 Oct 2013, 07:53 AM
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?

5 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 04 Oct 2013, 01:45 PM
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 >>
0
Nadeem
Top achievements
Rank 1
answered on 08 Oct 2013, 04:37 AM
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
0
Vladi
Telerik team
answered on 08 Oct 2013, 01:47 PM
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 >>
0
Sreelaskshmi
Top achievements
Rank 1
answered on 01 Mar 2017, 11:50 AM

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

0
Dilyan Traykov
Telerik team
answered on 03 Mar 2017, 02:58 PM
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 you to write beautiful native mobile apps using a single shared C# codebase.
Tags
AutoCompleteBox
Asked by
Nadeem
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Nadeem
Top achievements
Rank 1
Sreelaskshmi
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or