bind a list of items into radautocomplexbox by code

2 posts, 0 answers
  1. vioal
    vioal avatar
    2 posts
    Member since:
    May 2015

    Posted 18 May 2015 Link to this post

    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??
  2. Nasko
    Nasko avatar
    556 posts

    Posted 21 May 2015 Link to this post

    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:

    We are looking forward to hearing from you.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top