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

bind a list of items into radautocomplexbox by code

1 Answer 110 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
vioal
Top achievements
Rank 1
vioal asked on 18 May 2015, 09:38 PM
i want to use a radAutocompletebox in my application. the ItemSource is dynamically from my database. i have a code like this: var list = extrainfo.database.UserPrivateInfoes;
foreach (var item in list)
{
obs.Add( new RadAutoCompleteBoxItem{Content= item.UName} );
}
TX_Receiver.ItemsSource = obs;which the obs is observablecollection .the problem is when the items are shown in dropdown i have an item with TWO CROSS BUTTON for remove. actually it is not nice enough!! but when i add a list of String to ItemSource the problem is resolved. i need to have an item not just with a string for its name, i need more info (like UID) for every item. is there any solution??

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 21 May 2015, 01:58 PM
Hi Vioal,

Based on the provided description we tried to reproduce the observed by you behavior of RadAutoCompleteBox, but without any success. Could you please provide us some more detailed information about your scenario? Sending us a sample project that reproduces the observed appearance will be of great help for our further investigation in order to provide you with a prompt solution or some technical instructions how to achieve the desired. Meanwhile, we also suggest you to check the following article from our help documentation that provides a detailed information how to bind your RadAutoCompleteBox to a collection of business object:
http://docs.telerik.com/devtools/wpf/controls/radautocompletebox/populating-with-data/binding-to-object

We are looking forward to hearing from you.

Regards,
Nasko
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
AutoCompleteBox
Asked by
vioal
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or